summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-07 10:12:55 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-07 11:01:11 +0000
commite546ed01e6bf6dbd8a30cecead4b0b75e2afe92a (patch)
treea0802d5bc6f57d75cad302069ff88d4390636660 /package
parent3ddaeaab37d585971e376de6ad7b0f06f55f2e1a (diff)
loplugin:unusedmethods package
Change-Id: I19d6bbb9288d72b99d1023b4983b1c3fff7570e8 Reviewed-on: https://gerrit.libreoffice.org/16811 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'package')
-rw-r--r--package/inc/ByteChucker.hxx7
-rw-r--r--package/inc/ZipFile.hxx12
-rw-r--r--package/inc/ZipPackage.hxx1
-rw-r--r--package/inc/ZipPackageBuffer.hxx1
-rw-r--r--package/inc/ZipPackageEntry.hxx1
-rw-r--r--package/source/xstor/owriteablestream.hxx6
-rw-r--r--package/source/xstor/xstorage.hxx7
-rw-r--r--package/source/zipapi/MemoryByteGrabber.hxx50
8 files changed, 0 insertions, 85 deletions
diff --git a/package/inc/ByteChucker.hxx b/package/inc/ByteChucker.hxx
index e317e8acd6c4..fc1167ef978f 100644
--- a/package/inc/ByteChucker.hxx
+++ b/package/inc/ByteChucker.hxx
@@ -64,13 +64,6 @@ public:
WriteBytes( a4Sequence );
}
- void WriteUInt16(sal_uInt16 nuInt16)
- {
- p2Sequence[0] = static_cast< sal_Int8 >((nuInt16 >> 0 ) & 0xFF);
- p2Sequence[1] = static_cast< sal_Int8 >((nuInt16 >> 8 ) & 0xFF);
- WriteBytes( a2Sequence );
- }
-
void WriteUInt32(sal_uInt32 nuInt32)
{
p4Sequence[0] = static_cast < sal_Int8 > ((nuInt32 >> 0 ) & 0xFF);
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx
index 18d2f0ab3160..83ffd1cd236a 100644
--- a/package/inc/ZipFile.hxx
+++ b/package/inc/ZipFile.hxx
@@ -67,18 +67,6 @@ protected:
bool bRecoveryMode;
- com::sun::star::uno::Reference < com::sun::star::io::XInputStream > createMemoryStream(
- ZipEntry & rEntry,
- const ::rtl::Reference < EncryptionData > &rData,
- bool bRawStream,
- bool bDecrypt );
-
- com::sun::star::uno::Reference < com::sun::star::io::XInputStream > createFileStream(
- ZipEntry & rEntry,
- const ::rtl::Reference < EncryptionData > &rData,
- bool bRawStream,
- bool bDecrypt );
-
// aMediaType parameter is used only for raw stream header creation
com::sun::star::uno::Reference < com::sun::star::io::XInputStream > createUnbufferedStream(
const rtl::Reference<SotMutexHolder>& aMutexHolder,
diff --git a/package/inc/ZipPackage.hxx b/package/inc/ZipPackage.hxx
index 131887664292..18f8639ec998 100644
--- a/package/inc/ZipPackage.hxx
+++ b/package/inc/ZipPackage.hxx
@@ -191,7 +191,6 @@ public:
static OUString static_getImplementationName();
static ::com::sun::star::uno::Sequence < OUString > static_getSupportedServiceNames();
static ::com::sun::star::uno::Reference < com::sun::star::lang::XSingleServiceFactory > createServiceFactory( com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > const & rServiceFactory );
- bool SAL_CALL static_supportsService(OUString const & rServiceName);
};
#endif
diff --git a/package/inc/ZipPackageBuffer.hxx b/package/inc/ZipPackageBuffer.hxx
index 8f1b9ff7b97d..df1d8dbf9806 100644
--- a/package/inc/ZipPackageBuffer.hxx
+++ b/package/inc/ZipPackageBuffer.hxx
@@ -40,7 +40,6 @@ public:
virtual ~ZipPackageBuffer();
inline void realloc ( sal_Int32 nSize ) { m_aBuffer.realloc ( nSize ); }
- inline const sal_Int8 * getConstArray () const { return m_aBuffer.getConstArray(); }
inline const com::sun::star::uno::Sequence < sal_Int8> getSequence () const { return m_aBuffer; }
// XInputStream
diff --git a/package/inc/ZipPackageEntry.hxx b/package/inc/ZipPackageEntry.hxx
index fe19772f5d05..c1e5c8ffe290 100644
--- a/package/inc/ZipPackageEntry.hxx
+++ b/package/inc/ZipPackageEntry.hxx
@@ -64,7 +64,6 @@ public:
void SetMediaType ( const OUString & sNewType) { msMediaType = sNewType; }
void doSetParent ( ZipPackageFolder * pNewParent, bool bInsert );
bool IsFolder ( ) { return mbIsFolder; }
- const ZipPackageFolder* GetParent () const { return mpParent; }
void SetFolder ( bool bSetFolder ) { mbIsFolder = bSetFolder; }
virtual bool saveChild( const OUString &rPath,
diff --git a/package/source/xstor/owriteablestream.hxx b/package/source/xstor/owriteablestream.hxx
index 9da76c741388..2438e260bc61 100644
--- a/package/source/xstor/owriteablestream.hxx
+++ b/package/source/xstor/owriteablestream.hxx
@@ -191,12 +191,6 @@ public:
void Commit();
void Revert();
- void Free( bool bMust ); // allows to try to disconnect from the temporary stream
- // in case bMust is set to sal_True the method
- // will throw exception in case the file is still busy
-
- void SetModified(); // can be done only by parent storage after renaming
-
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > GetStreamProperties();
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > GetAllRelationshipsIfAny();
diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx
index 6e7879f1daa8..c1371a367c86 100644
--- a/package/source/xstor/xstorage.hxx
+++ b/package/source/xstor/xstorage.hxx
@@ -213,8 +213,6 @@ struct OStorage_Impl
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > GetAllRelationshipsIfAny();
void CopyLastCommitTo( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewStor );
- void CopyLastCommitTo( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewStor,
- const OUString& aPass );
void InsertIntoPackageFolder(
const OUString& aName,
@@ -232,8 +230,6 @@ struct OStorage_Impl
const OUString& aName,
bool bDirect );
- void SetModified( bool bModified );
-
SotElement_Impl* FindElement( const OUString& rName );
SotElement_Impl* InsertStream( const OUString& aName, bool bEncr );
@@ -250,7 +246,6 @@ struct OStorage_Impl
void RemoveElement( SotElement_Impl* pElement );
static void ClearElement( SotElement_Impl* pElement );
- void DisposeChildren();
void CloneStreamElement(
const OUString& aStreamName,
@@ -298,8 +293,6 @@ class OStorage : public ::com::sun::star::lang::XTypeProvider
protected:
- void Commit_Impl();
-
SotElement_Impl* OpenStreamElement_Impl( const OUString& aStreamName, sal_Int32 nOpenMode, bool bEncr );
void BroadcastModifiedIfNecessary();
diff --git a/package/source/zipapi/MemoryByteGrabber.hxx b/package/source/zipapi/MemoryByteGrabber.hxx
index 0e2a7393de0d..ce8e0e22622e 100644
--- a/package/source/zipapi/MemoryByteGrabber.hxx
+++ b/package/source/zipapi/MemoryByteGrabber.hxx
@@ -59,48 +59,13 @@ public:
return nBytesToRead;
}
- sal_Int32 SAL_CALL readSomeBytes( com::sun::star::uno::Sequence< sal_Int8 >& aData,
- sal_Int32 nMaxBytesToRead )
- throw(com::sun::star::io::NotConnectedException, com::sun::star::io::BufferSizeExceededException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException)
- {
- return readBytes( aData, nMaxBytesToRead );
- }
void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
throw(com::sun::star::io::NotConnectedException, com::sun::star::io::BufferSizeExceededException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException)
{
mnCurrent += nBytesToSkip;
}
- sal_Int32 SAL_CALL available( )
- throw(com::sun::star::io::NotConnectedException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException)
- {
- return mnEnd - mnCurrent;
- }
// XSeekable chained...
- sal_Int64 SAL_CALL seek( sal_Int64 location )
- throw(com::sun::star::lang::IllegalArgumentException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException)
- {
- if ( location < 0 || location > mnEnd )
- throw com::sun::star::lang::IllegalArgumentException ();
- mnCurrent = static_cast < sal_Int32 > ( location );
- return mnCurrent;
- }
- sal_Int64 SAL_CALL getPosition( )
- throw(com::sun::star::io::IOException, com::sun::star::uno::RuntimeException)
- {
- return mnCurrent;
- }
- sal_Int64 SAL_CALL getLength( )
- throw(com::sun::star::io::IOException, com::sun::star::uno::RuntimeException)
- {
- return mnEnd;
- }
- sal_Int8 ReadInt8()
- {
- if (mnCurrent + 1 > mnEnd )
- return 0;
- return mpBuffer [mnCurrent++] & 0xFF;
- }
sal_Int16 ReadInt16()
{
if (mnCurrent + 2 > mnEnd )
@@ -121,21 +86,6 @@ public:
return nInt32;
}
- sal_uInt8 ReadUInt8()
- {
- if (mnCurrent + 1 > mnEnd )
- return 0;
- return mpBuffer [mnCurrent++] & 0xFF;
- }
- sal_uInt16 ReadUInt16()
- {
- if (mnCurrent + 2 > mnEnd )
- return 0;
-
- sal_uInt16 nInt16 = mpBuffer [mnCurrent++] & 0xFF;
- nInt16 |= ( mpBuffer [mnCurrent++] & 0xFF ) << 8;
- return nInt16;
- }
sal_uInt32 ReadUInt32()
{
if (mnCurrent + 4 > mnEnd )