diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-14 14:50:07 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-15 09:07:05 +0000 |
commit | 22b094f5d8e1e82375b135abd3a6f99a9a555244 (patch) | |
tree | 8f678aa9d5db3400fb8aba0ade1f1cbda23696f1 /include/basic | |
parent | ba562acdf293e0e0ec4f747716e7fb0db848f1cb (diff) |
loplugin:unusedmethods basic
Change-Id: Iddfbde451088750f8c74f3ac72c35b5ccfbe0ab1
Reviewed-on: https://gerrit.libreoffice.org/17044
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/basic')
-rw-r--r-- | include/basic/basmgr.hxx | 10 | ||||
-rw-r--r-- | include/basic/sbmeth.hxx | 1 | ||||
-rw-r--r-- | include/basic/sbmod.hxx | 2 | ||||
-rw-r--r-- | include/basic/sbstar.hxx | 7 | ||||
-rw-r--r-- | include/basic/sbx.hxx | 3 | ||||
-rw-r--r-- | include/basic/sbxcore.hxx | 5 | ||||
-rw-r--r-- | include/basic/sbxvar.hxx | 12 |
7 files changed, 0 insertions, 40 deletions
diff --git a/include/basic/basmgr.hxx b/include/basic/basmgr.hxx index 5f89a3672e35..97a7e9916597 100644 --- a/include/basic/basmgr.hxx +++ b/include/basic/basmgr.hxx @@ -57,12 +57,6 @@ public: BasicError( sal_uInt64 nId, BasicErrorReason nR, const OUString& rErrStr ); sal_uInt64 GetErrorId() const { return nErrorId; } - BasicErrorReason GetReason() const { return nReason; } - OUString GetErrorStr() { return aErrStr; } - - void SetErrorId( sal_uInt64 n ) { nErrorId = n; } - void SetReason( BasicErrorReason n ) { nReason = n; } - void SetErrorStr( const OUString& rStr) { aErrStr = rStr; } }; class ErrorManager; @@ -75,9 +69,6 @@ class BASIC_DLLPUBLIC OldBasicPassword { public: virtual void setLibraryPassword( const OUString& rLibraryName, const OUString& rPassword ) = 0; - virtual OUString getLibraryPassword( const OUString& rLibraryName ) = 0; - virtual void clearLibraryPassword( const OUString& rLibraryName ) = 0; - virtual bool hasLibraryPassword( const OUString& rLibraryName ) = 0; protected: ~OldBasicPassword() {} @@ -130,7 +121,6 @@ private: BASIC_DLLPRIVATE void Init(); protected: - bool ImpLoadLibrary( BasicLibInfo* pLibInfo ) const; bool ImpLoadLibrary( BasicLibInfo* pLibInfo, SotStorage* pCurStorage, bool bInfosOnly = false ); void ImpCreateStdLib( StarBASIC* pParentFromStdLib ); void ImpMgrNotLoaded( const OUString& rStorageName ); diff --git a/include/basic/sbmeth.hxx b/include/basic/sbmeth.hxx index 70e61c68754d..2f0aab790ad2 100644 --- a/include/basic/sbmeth.hxx +++ b/include/basic/sbmeth.hxx @@ -57,7 +57,6 @@ public: SbxArray* GetStatics(); void ClearStatics(); SbModule* GetModule() { return pMod; } - sal_uInt32 GetId() const { return nStart; } sal_uInt16 GetDebugFlags() { return nDebugFlags; } void SetDebugFlags( sal_uInt16 n ) { nDebugFlags = n; } void GetLineRange( sal_uInt16&, sal_uInt16& ); diff --git a/include/basic/sbmod.hxx b/include/basic/sbmod.hxx index 7b40b1f8a5f1..18683b7ee5cb 100644 --- a/include/basic/sbmod.hxx +++ b/include/basic/sbmod.hxx @@ -104,7 +104,6 @@ public: const OUString& GetSource() const; const OUString& GetSource32() const { return aOUSource;} - const OUString& GetComment() const { return aComment; } void SetSource32( const OUString& r ); bool Compile(); @@ -120,7 +119,6 @@ public: // Store only image, no source (needed for new password protection) bool StoreBinaryData( SvStream& ); bool StoreBinaryData( SvStream&, sal_uInt16 nVer ); - bool LoadBinaryData( SvStream&, sal_uInt16 nVer ); bool LoadBinaryData( SvStream& ); bool ExceedsLegacyModuleSize(); void fixUpMethodStart( bool bCvtToLegacy, SbiImage* pImg = NULL ) const; diff --git a/include/basic/sbstar.hxx b/include/basic/sbstar.hxx index 4f75dc646776..0161f73151b7 100644 --- a/include/basic/sbstar.hxx +++ b/include/basic/sbstar.hxx @@ -102,9 +102,6 @@ public: virtual void Remove( SbxVariable* ) SAL_OVERRIDE; virtual void Clear() SAL_OVERRIDE; - BasicLibInfo* GetLibInfo() { return pLibInfo; } - void SetLibInfo( BasicLibInfo* p ) { pLibInfo = p; } - // Compiler-Interface SbModule* MakeModule( const OUString& rName, const OUString& rSrc ); SbModule* MakeModule32( const OUString& rName, const OUString& rSrc ); @@ -150,12 +147,8 @@ public: static Link<StarBASIC*,bool> GetGlobalErrorHdl(); static void SetGlobalErrorHdl( const Link<StarBASIC*,bool>& rNewHdl ); - Link<StarBASIC*,bool> GetErrorHdl() const { return aErrorHdl; } - void SetErrorHdl( const Link<StarBASIC*,bool>& r ) { aErrorHdl = r; } static void SetGlobalBreakHdl( const Link<StarBASIC*,sal_uInt16>& rNewHdl ); - Link<StarBASIC*,sal_uInt16> GetBreakHdl() const { return aBreakHdl; } - void SetBreakHdl( const Link<StarBASIC*,sal_uInt16>& r ) { aBreakHdl = r; } SbxArrayRef getUnoListeners(); diff --git a/include/basic/sbx.hxx b/include/basic/sbx.hxx index 348435acbb2c..e6fb750d0348 100644 --- a/include/basic/sbx.hxx +++ b/include/basic/sbx.hxx @@ -86,8 +86,6 @@ public: sal_uInt32 GetHelpId() const { return nHelpId; } void SetComment( const OUString& r ) { aComment = r; } - void SetHelpFile( const OUString& r ) { aHelpFile = r; } - void SetHelpId( sal_uInt32 nId ) { nHelpId = nId; } }; class BASIC_DLLPUBLIC SbxHint : public SfxSimpleHint @@ -254,7 +252,6 @@ public: SbxStdCollection( const SbxStdCollection& ); SbxStdCollection& operator=( const SbxStdCollection& ); virtual void Insert( SbxVariable* ) SAL_OVERRIDE; - const OUString& GetElementClass() const { return aElemClass; } }; #ifndef SBX_ARRAY_DECL_DEFINED diff --git a/include/basic/sbxcore.hxx b/include/basic/sbxcore.hxx index 98f984196dd6..6ce2e2c493c1 100644 --- a/include/basic/sbxcore.hxx +++ b/include/basic/sbxcore.hxx @@ -74,7 +74,6 @@ public: inline bool CanRead() const; inline bool CanWrite() const; inline bool IsModified() const; - inline bool IsConst() const; inline bool IsHidden() const; inline bool IsVisible() const; @@ -90,7 +89,6 @@ public: static void Skip( SvStream& ); bool Store( SvStream& ); virtual bool LoadCompleted(); - bool StoreCompleted(); static SbxError GetError(); static void SetError( SbxError ); @@ -134,9 +132,6 @@ inline bool SbxBase::CanWrite() const inline bool SbxBase::IsModified() const { return IsSet( SBX_MODIFIED ); } -inline bool SbxBase::IsConst() const -{ return IsSet( SBX_CONST ); } - inline bool SbxBase::IsHidden() const { return IsSet( SBX_HIDDEN ); } diff --git a/include/basic/sbxvar.hxx b/include/basic/sbxvar.hxx index 5ac8d733244b..9a69c8e21bd9 100644 --- a/include/basic/sbxvar.hxx +++ b/include/basic/sbxvar.hxx @@ -113,24 +113,14 @@ public: bool IsInteger() const { return GetType() == SbxINTEGER ; } bool IsLong() const { return GetType() == SbxLONG ; } - bool IsSingle() const { return GetType() == SbxSINGLE ; } bool IsDouble() const { return GetType() == SbxDOUBLE ; } bool IsString() const { return GetType() == SbxSTRING ; } - bool IsDate() const { return GetType() == SbxDATE ; } bool IsCurrency() const { return GetType() == SbxCURRENCY ; } bool IsObject() const { return GetType() == SbxOBJECT ; } - bool IsDataObject() const { return GetType() == SbxDATAOBJECT; } bool IsBool() const { return GetType() == SbxBOOL ; } bool IsErr() const { return GetType() == SbxERROR ; } bool IsEmpty() const { return GetType() == SbxEMPTY ; } bool IsNull() const { return GetType() == SbxNULL ; } - bool IsChar() const { return GetType() == SbxCHAR ; } - bool IsByte() const { return GetType() == SbxBYTE ; } - bool IsUShort() const { return GetType() == SbxUSHORT ; } - bool IsULong() const { return GetType() == SbxULONG ; } - bool IsInt() const { return GetType() == SbxINT ; } - bool IsUInt() const { return GetType() == SbxUINT ; } - bool IspChar() const { return GetType() == SbxLPSTR ; } bool IsNumeric() const; bool IsNumericRTL() const; // #41692 Interface for Basic bool ImpIsNumeric( bool bOnlyIntntl ) const; // Implementation @@ -144,8 +134,6 @@ public: const SbxValues& GetValues_Impl() const { return aData; } bool Put( const SbxValues& ); - inline SbxValues& data() { return aData; } - sal_Unicode GetChar() const; sal_Int16 GetInteger() const; sal_Int32 GetLong() const; |