diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-03 09:21:43 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-06 10:55:59 +0000 |
commit | 871a41cfd043e1c7391ca0b8b3c5e60bd799025c (patch) | |
tree | 395c13351fc57350dbf7bb14371b3553b8d08868 /include | |
parent | e47db97d2ced9178456eebaece11118158dce406 (diff) |
loplugin:unusedmethods unotools
Change-Id: Ieb73b50471263212285b9c3883c082477c1ad656
Reviewed-on: https://gerrit.libreoffice.org/16729
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/calendarwrapper.hxx | 3 | ||||
-rw-r--r-- | include/unotools/charclass.hxx | 2 | ||||
-rw-r--r-- | include/unotools/configitem.hxx | 1 | ||||
-rw-r--r-- | include/unotools/confignode.hxx | 11 | ||||
-rw-r--r-- | include/unotools/fontcvt.hxx | 8 | ||||
-rw-r--r-- | include/unotools/lingucfg.hxx | 3 | ||||
-rw-r--r-- | include/unotools/localedatawrapper.hxx | 14 | ||||
-rw-r--r-- | include/unotools/numberformatcodewrapper.hxx | 3 | ||||
-rw-r--r-- | include/unotools/pathoptions.hxx | 1 | ||||
-rw-r--r-- | include/unotools/syslocaleoptions.hxx | 9 | ||||
-rw-r--r-- | include/unotools/textsearch.hxx | 14 | ||||
-rw-r--r-- | include/unotools/transliterationwrapper.hxx | 4 |
12 files changed, 1 insertions, 72 deletions
diff --git a/include/unotools/calendarwrapper.hxx b/include/unotools/calendarwrapper.hxx index 68ee61c59f4f..ceffdea6b607 100644 --- a/include/unotools/calendarwrapper.hxx +++ b/include/unotools/calendarwrapper.hxx @@ -105,9 +105,6 @@ public: inline void setGregorianDateTime( const DateTime& rDateTime ) { setLocalDateTime( rDateTime - aEpochStart ); } - /// get the DateTime as a local (!) Gregorian DateTime - inline DateTime getGregorianDateTime() const - { return aEpochStart + getLocalDateTime(); } }; #endif diff --git a/include/unotools/charclass.hxx b/include/unotools/charclass.hxx index 06ec048723b2..af4994e0a2aa 100644 --- a/include/unotools/charclass.hxx +++ b/include/unotools/charclass.hxx @@ -208,10 +208,8 @@ public: bool isDigit( const OUString& rStr, sal_Int32 nPos ) const; bool isAlphaNumeric( const OUString& rStr, sal_Int32 nPos ) const; bool isLetterNumeric( const OUString& rStr, sal_Int32 nPos ) const; - bool isAlpha( const OUString& rStr ) const; bool isLetter( const OUString& rStr ) const; bool isNumeric( const OUString& rStr ) const; - bool isAlphaNumeric( const OUString& rStr ) const; bool isLetterNumeric( const OUString& rStr ) const; private: diff --git a/include/unotools/configitem.hxx b/include/unotools/configitem.hxx index 16a6f84b96e3..9d5e4ba8afd0 100644 --- a/include/unotools/configitem.hxx +++ b/include/unotools/configitem.hxx @@ -147,7 +147,6 @@ namespace utl @see EnableNotification */ void DisableNotification(); - bool IsInternalNotification()const {return IsInValueChange();} //returns all members of a node in a specific format com::sun::star::uno::Sequence< OUString > diff --git a/include/unotools/confignode.hxx b/include/unotools/confignode.hxx index 062422175e20..8abd1e6b3b06 100644 --- a/include/unotools/confignode.hxx +++ b/include/unotools/confignode.hxx @@ -110,11 +110,6 @@ namespace utl */ OConfigurationNode createNode(const OUString& _rName) const throw(); - OConfigurationNode createNode( const sal_Char* _pAsciiName ) const - { - return createNode( OUString::createFromAscii( _pAsciiName ) ); - } - /** remove an existent child nod If the object represents a set node, this method may be used to delete an existent child. For non-set-nodes, @@ -122,11 +117,6 @@ namespace utl */ bool removeNode(const OUString& _rName) const throw(); - bool removeNode( const sal_Char* _pAsciiName ) const - { - return removeNode( OUString::createFromAscii( _pAsciiName ) ); - } - /** retrieves the content of a descendant the returned value may contain anything from an interface (if <arg>_rPath</arg> refers to inner node of @@ -186,7 +176,6 @@ namespace utl /// checks whether or not a descendent (no matter if direct or indirect) with the given name exists bool hasByHierarchicalName( const OUString& _rName ) const throw(); - bool hasByHierarchicalName( const sal_Char* _pAsciiName ) const { return hasByHierarchicalName( OUString::createFromAscii( _pAsciiName ) ); } /// check if the objects represents a valid configuration node bool isValid() const { return m_xHierarchyAccess.is(); } diff --git a/include/unotools/fontcvt.hxx b/include/unotools/fontcvt.hxx index 6e51a9a6b554..567be3b60b5d 100644 --- a/include/unotools/fontcvt.hxx +++ b/include/unotools/fontcvt.hxx @@ -55,14 +55,6 @@ public: //want to convert a string, you don't want to use this. virtual OUString ConvertChar(sal_Unicode &rChar) = 0; - //Starts converting the string at position rIndex. It converts as much of - //the string that can be converted to the same symbol font and returns the - //name of that font. rIndex is modified to the last index that was - //converted. Typically you call if continuously until rIndex == - //rString.Len() and handle each section as separate 8bit strings using - //separate fonts. Will return an empty string for a continuous section - //that has no possible mapping. - virtual OUString ConvertString(OUString &rString, sal_Int32 &rIndex) = 0; virtual ~StarSymbolToMSMultiFont() {} }; diff --git a/include/unotools/lingucfg.hxx b/include/unotools/lingucfg.hxx index cceae1bc8ccc..a17082d13cc7 100644 --- a/include/unotools/lingucfg.hxx +++ b/include/unotools/lingucfg.hxx @@ -149,9 +149,6 @@ class UNOTOOLS_DLLPUBLIC SvtLinguConfig: public utl::detail::Options com::sun::star::uno::Reference< com::sun::star::util::XChangesBatch > GetMainUpdateAccess() const; - com::sun::star::uno::Sequence< OUString > GetCurrentOrLastActiveDicts_Impl( const OUString &rPropName ) const; - void SetCurrentOrLastActiveDicts_Impl( const OUString &rPropName, const com::sun::star::uno::Sequence< OUString > &rDictionaries ) const; - OUString GetVendorImageUrl_Impl( const OUString &rServiceImplName, const OUString &rImageName ) const; SvtLinguConfig( const SvtLinguConfig & ) SAL_DELETED_FUNCTION; diff --git a/include/unotools/localedatawrapper.hxx b/include/unotools/localedatawrapper.hxx index d6448599e596..55106d8ca491 100644 --- a/include/unotools/localedatawrapper.hxx +++ b/include/unotools/localedatawrapper.hxx @@ -211,9 +211,7 @@ public: { return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::DOUBLE_QUOTATION_START ); } const OUString& getDoubleQuotationMarkEnd() const { return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::DOUBLE_QUOTATION_END ); } - const OUString& getMeasurementSystem() const - { return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::MEASUREMENT_SYSTEM ); } - MeasurementSystem getMeasurementSystemEnum() const + MeasurementSystem getMeasurementSystemEnum() const { return mapMeasurementStringToEnum( getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::MEASUREMENT_SYSTEM ) ); } const OUString& getTimeAM() const { return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::TIME_AM ); } @@ -285,13 +283,6 @@ public: OUString getCurr( sal_Int64 nNumber, sal_uInt16 nDecimals, const OUString& rCurrencySymbol, bool bUseThousandSep = true ) const; - /** Default currency formatted string, use with - care as default currency may change in any - locale, for example, DEM -> EUR */ - OUString getCurr( sal_Int64 nNumber, sal_uInt16 nDecimals, - bool bUseThousandSep = true ) const - { return getCurr( nNumber, nDecimals, - getCurrSymbol(), bUseThousandSep ); } // dummy returns, to be implemented inline sal_Unicode getCurrZeroChar() const @@ -310,9 +301,6 @@ public: { return getOneReservedWord( ::com::sun::star::i18n::reservedWords::TRUE_WORD ); } const OUString& getFalseWord() const { return getOneReservedWord( ::com::sun::star::i18n::reservedWords::FALSE_WORD ); } - /// return a quarter string matching nQuarter (0..3) => "1st quarter" .. "4th quarter" - const OUString& getQuarterWord( sal_Int16 nQuarter ) const - { return getOneReservedWord( ::com::sun::star::i18n::reservedWords::QUARTER1_WORD + nQuarter ); } const OUString& getAboveWord() const { return getOneReservedWord( ::com::sun::star::i18n::reservedWords::ABOVE_WORD ); } const OUString& getBelowWord() const diff --git a/include/unotools/numberformatcodewrapper.hxx b/include/unotools/numberformatcodewrapper.hxx index 066e38858d75..00f647a3b59b 100644 --- a/include/unotools/numberformatcodewrapper.hxx +++ b/include/unotools/numberformatcodewrapper.hxx @@ -48,9 +48,6 @@ public: /// set a new Locale void setLocale( const ::com::sun::star::lang::Locale& rLocale ); - /// get current Locale - const ::com::sun::star::lang::Locale& getLocale() const { return aLocale; } - // Wrapper implementations of class NumberFormatCodeMapper ::com::sun::star::i18n::NumberFormatCode getFormatCode( sal_Int16 nFormatIndex ) const; diff --git a/include/unotools/pathoptions.hxx b/include/unotools/pathoptions.hxx index 07bf3eb3e16d..482d48bda824 100644 --- a/include/unotools/pathoptions.hxx +++ b/include/unotools/pathoptions.hxx @@ -121,7 +121,6 @@ public: OUString UseVariable( const OUString& rVar ) const; bool SearchFile( OUString& rIniFile, Paths ePath = PATH_USERCONFIG ); const LanguageTag& GetLanguageTag() const; - bool IsReadonly() const; }; #endif // INCLUDED_UNOTOOLS_PATHOPTIONS_HXX diff --git a/include/unotools/syslocaleoptions.hxx b/include/unotools/syslocaleoptions.hxx index cd62d8514c9d..99883acfe4f5 100644 --- a/include/unotools/syslocaleoptions.hxx +++ b/include/unotools/syslocaleoptions.hxx @@ -149,15 +149,6 @@ public: eLang, GetCurrencyConfigString() ); } - void SetCurrencyAbbrevAndLanguage( - const OUString& rAbbrev, - LanguageType eLang ) - { - SetCurrencyConfigString( - CreateCurrencyConfigString( - rAbbrev, eLang ) ); - } - /** Set a link to a method to be called whenever the default currency changes. This can be only one method, and normally it is the static link method which calls SvNumberFormatter::SetDefaultSystemCurrency(). diff --git a/include/unotools/textsearch.hxx b/include/unotools/textsearch.hxx index d13ec3f4d419..76e53df7690d 100644 --- a/include/unotools/textsearch.hxx +++ b/include/unotools/textsearch.hxx @@ -86,26 +86,12 @@ public: bool IsSrchInSelection() const { return m_bSrchInSel; } bool IsSrchWordOnly() const { return m_bWordOnly; } - void SetSrchStr( const OUString& rStr ) { sSrchStr = rStr; } - void SetReplaceStr( const OUString& rStr ) { sReplaceStr = rStr; } - void SetSrchType( SearchType eType ) { m_eSrchType = eType; } - - void SetCaseSensitive( int bFlag ) { m_bCaseSense = bFlag; } - void SetSrchInSelection( int bFlag ) { m_bSrchInSel = bFlag; } - void SetSrchWordOnly( int bFlag ) { m_bWordOnly = bFlag; } - bool IsSrchRelaxed() const { return bLEV_Relaxed; } int GetLEVOther() const { return nLEV_OtherX; } int GetLEVShorter() const { return nLEV_ShorterY; } int GetLEVLonger() const { return nLEV_LongerZ; } - void SetSrchRelaxed( int bFlag ) { bLEV_Relaxed = bFlag; } - void SetLEVOther( int nValue ) { nLEV_OtherX = nValue; } - void SetLEVShorter( int nValue ) { nLEV_ShorterY = nValue; } - void SetLEVLonger( int nValue ) { nLEV_LongerZ = nValue; } - long GetTransliterationFlags() const { return nTransliterationFlags; } - void SetTransliterationFlags( long nValue ) { nTransliterationFlags = nValue; } }; // Utility class for searching a substring in a string. diff --git a/include/unotools/transliterationwrapper.hxx b/include/unotools/transliterationwrapper.hxx index 7d0dce0e1690..840bb408a1f4 100644 --- a/include/unotools/transliterationwrapper.hxx +++ b/include/unotools/transliterationwrapper.hxx @@ -55,10 +55,6 @@ public: ~TransliterationWrapper(); - // get current Locale / Language - const ::com::sun::star::lang::Locale& getLocale() const { return aLanguageTag.getLocale();} - sal_uInt16 getLanguage() const { return aLanguageTag.getLanguageType(); } - sal_uInt32 getType() const { return nType; } bool needLanguageForTheMode() const; |