summaryrefslogtreecommitdiff
path: root/vcl/source/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-02 08:52:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-02 20:22:18 +0200
commit6842a50a8c33aba554454fc99d1bc40a07585a2c (patch)
tree03f2964159d2ce33efeee62d4d6bc29ab64a4e7e /vcl/source/filter
parent0d027abbc5609b096d2a954e77aa7354a55928ab (diff)
remove some unused methods
Change-Id: Ie86cc069b9c69087012b15597e548d1d745d6e2e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101941 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/filter')
-rw-r--r--vcl/source/filter/png/pngread.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/vcl/source/filter/png/pngread.cxx b/vcl/source/filter/png/pngread.cxx
index ff13402d0605..923588ad7e32 100644
--- a/vcl/source/filter/png/pngread.cxx
+++ b/vcl/source/filter/png/pngread.cxx
@@ -133,7 +133,6 @@ private:
bool mbIDATStarted : 1; // true if IDAT seen
bool mbIDATComplete : 1; // true if finished with enough IDAT chunks
bool mbpHYs : 1; // true if physical size of pixel available
- bool mbIgnoreGammaChunk : 1;
bool mbIgnoreCRC : 1; // skip checking CRCs while fuzzing
#if OSL_DEBUG_LEVEL > 0
@@ -174,7 +173,6 @@ public:
BitmapEx GetBitmapEx();
const std::vector<vcl::PNGReader::ChunkData>& GetAllChunks();
- void SetIgnoreGammaChunk( bool bIgnore ){ mbIgnoreGammaChunk = bIgnore; };
};
PNGReaderImpl::PNGReaderImpl( SvStream& rPNGStream )
@@ -212,7 +210,6 @@ PNGReaderImpl::PNGReaderImpl( SvStream& rPNGStream )
mbIDATStarted( false ),
mbIDATComplete( false ),
mbpHYs ( false ),
- mbIgnoreGammaChunk ( false ),
mbIgnoreCRC( utl::ConfigManager::IsFuzzing() )
#if OSL_DEBUG_LEVEL > 0
,mnAllocSizeScanline(0),
@@ -352,7 +349,7 @@ BitmapEx PNGReaderImpl::GetBitmapEx()
case PNGCHUNK_gAMA : // the gamma chunk must precede
{ // the 'IDAT' and also the 'PLTE'(if available )
- if (!mbIgnoreGammaChunk && !mbIDATComplete)
+ if (!mbIDATComplete)
ImplGetGamma();
}
break;
@@ -1705,11 +1702,6 @@ const std::vector< vcl::PNGReader::ChunkData >& PNGReader::GetChunks() const
return mpImpl->GetAllChunks();
}
-void PNGReader::SetIgnoreGammaChunk(bool bIgnoreGammaChunk)
-{
- mpImpl->SetIgnoreGammaChunk(bIgnoreGammaChunk);
-}
-
} // namespace vcl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */