loplugin:unusedmethods

Change-Id: I94861f9fa8d8a5d22a89c902984ad2afed43dc14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139645
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2022-09-08 15:31:14 +02:00
parent 75fcdffdcb
commit ca510d64b4
7 changed files with 0 additions and 49 deletions
@@ -60,7 +60,6 @@ namespace connectivity::evoab {
/// @throws css::sdbc::SQLException
void construct(const OUString& _rUrl,const css::uno::Sequence< css::beans::PropertyValue >& _rInfo );
OString const & getPassword() const { return m_aPassword; }
void setPassword( OString const & aStr ) { m_aPassword = aStr; }
// own methods
const OEvoabDriver& getDriver() const { return m_rDriver; }
-1
View File
@@ -44,7 +44,6 @@ class SwPamRanges
public:
SwPamRanges( const SwPaM& rRing );
void Insert( const SwNodeIndex& rIdx1, const SwNodeIndex& rIdx2 );
void Insert( const SwNode& rIdx1, const SwNode& rIdx2 );
SwPaM& SetPam( size_t nArrPos, SwPaM& rPam );
-5
View File
@@ -34,11 +34,6 @@ SwPamRanges::SwPamRanges( const SwPaM& rRing )
Insert( rTmp.GetMark()->GetNode(), rTmp.GetPoint()->GetNode() );
}
void SwPamRanges::Insert( const SwNodeIndex& rIdx1, const SwNodeIndex& rIdx2 )
{
Insert(rIdx1.GetNode(), rIdx2.GetNode());
}
void SwPamRanges::Insert( const SwNode& rIdx1, const SwNode& rIdx2 )
{
SwPamRange aRg( rIdx1.GetIndex(), rIdx2.GetIndex() );
-2
View File
@@ -39,8 +39,6 @@ public:
void SAL_CALL disposing(const css::lang::EventObject& /*Source*/) override;
const css::uno::Reference<css::frame::XFrame>& getFrame() { return mxFrame; }
void startListening();
void dispose();
-37
View File
@@ -166,43 +166,6 @@ static OUString ImpGetExtension( std::u16string_view rPath )
return aExt;
}
bool isPCT(SvStream& rStream, sal_uLong nStreamPos, sal_uLong nStreamLen)
{
sal_uInt8 sBuf[3];
// store number format
SvStreamEndian oldNumberFormat = rStream.GetEndian();
sal_uInt32 nOffset; // in MS documents the pict format is used without the first 512 bytes
for ( nOffset = 0; ( nOffset <= 512 ) && ( ( nStreamPos + nOffset + 14 ) <= nStreamLen ); nOffset += 512 )
{
short y1,x1,y2,x2;
bool bdBoxOk = true;
rStream.Seek( nStreamPos + nOffset);
// size of the pict in version 1 pict ( 2bytes) : ignored
rStream.SeekRel(2);
// bounding box (bytes 2 -> 9)
rStream.SetEndian(SvStreamEndian::BIG);
rStream.ReadInt16( y1 ).ReadInt16( x1 ).ReadInt16( y2 ).ReadInt16( x2 );
rStream.SetEndian(oldNumberFormat); // reset format
if (x1 > x2 || y1 > y2 || // bad bdbox
(x1 == x2 && y1 == y2) || // 1 pixel picture
x2-x1 > 2048 || y2-y1 > 2048 ) // picture abnormally big
bdBoxOk = false;
// read version op
rStream.ReadBytes(sBuf, 3);
// see http://developer.apple.com/legacy/mac/library/documentation/mac/pdf/Imaging_With_QuickDraw/Appendix_A.pdf
// normal version 2 - page A23 and A24
if ( sBuf[ 0 ] == 0x00 && sBuf[ 1 ] == 0x11 && sBuf[ 2 ] == 0x02)
return true;
// normal version 1 - page A25
else if (sBuf[ 0 ] == 0x11 && sBuf[ 1 ] == 0x01 && bdBoxOk)
return true;
}
return false;
}
ErrCode GraphicFilter::ImpTestOrFindFormat( std::u16string_view rPath, SvStream& rStream, sal_uInt16& rFormat )
{
// determine or check the filter/format by reading into it
@@ -25,8 +25,6 @@
sal_uInt8* ImplSearchEntry(sal_uInt8*, sal_uInt8 const*, sal_uLong, sal_uLong);
extern bool isPCT(SvStream& rStream, sal_uLong nStreamPos, sal_uLong nStreamLen);
#endif // INCLUDED_VCL_SOURCE_FILTER_GRAPHICFILTER_INTERNAL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-1
View File
@@ -86,7 +86,6 @@ public:
const OUString& GetParent() const { return msParent; }
PropertiesListType& GetPropertiesList() { return m_PropertiesList; }
const PropertiesListType& GetPropertiesList() const { return m_PropertiesList; }
bool operator< (const XMLAutoStylePoolParent& rOther) const;