[PATCH] Remove unused methods

Marcos Paulo de Souza marcos.souza.org at gmail.com
Fri Sep 28 14:23:23 PDT 2012


Just a cleanup.

Change-Id: I8fc47c39ede4e5b06af2144667ede5e9c2d5b397
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
---
 unotools/inc/unotools/useroptions.hxx  |    8 --------
 unotools/source/config/useroptions.cxx |    8 --------
 unusedcode.easy                        |    8 --------
 3 files changed, 24 deletions(-)

diff --git a/unotools/inc/unotools/useroptions.hxx b/unotools/inc/unotools/useroptions.hxx
index 502fcce5..a7b2267 100644
--- a/unotools/inc/unotools/useroptions.hxx
+++ b/unotools/inc/unotools/useroptions.hxx
@@ -78,14 +78,6 @@ public:
     rtl::OUString GetFullName       () const;
 
     // set the address token
-    void SetCompany        (rtl::OUString const&);
-    void SetFirstName      (rtl::OUString const&);
-    void SetID             (rtl::OUString const&);
-    void SetState          (rtl::OUString const&);
-    void SetCountry        (rtl::OUString const&);
-    void SetPosition       (rtl::OUString const&);
-    void SetTitle          (rtl::OUString const&);
-    void SetFax            (rtl::OUString const&);
     void SetCustomerNumber (rtl::OUString const&);
 
     sal_Bool      IsTokenReadonly (sal_uInt16 nToken) const;
diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx
index a8efcd1..1da014a 100644
--- a/unotools/source/config/useroptions.cxx
+++ b/unotools/source/config/useroptions.cxx
@@ -317,14 +317,6 @@ OUString SvtUserOptions::GetCustomerNumber () const { return GetToken(USER_OPT_C
 //
 // setters
 //
-void SvtUserOptions::SetCompany   (OUString const& sToken) { SetToken(USER_OPT_COMPANY,   sToken); }
-void SvtUserOptions::SetFirstName (OUString const& sToken) { SetToken(USER_OPT_FIRSTNAME, sToken); }
-void SvtUserOptions::SetID        (OUString const& sToken) { SetToken(USER_OPT_ID,        sToken); }
-void SvtUserOptions::SetState     (OUString const& sToken) { SetToken(USER_OPT_STATE,     sToken); }
-void SvtUserOptions::SetCountry   (OUString const& sToken) { SetToken(USER_OPT_COUNTRY,   sToken); }
-void SvtUserOptions::SetPosition  (OUString const& sToken) { SetToken(USER_OPT_POSITION,  sToken); }
-void SvtUserOptions::SetTitle     (OUString const& sToken) { SetToken(USER_OPT_TITLE,     sToken); }
-void SvtUserOptions::SetFax       (OUString const& sToken) { SetToken(USER_OPT_FAX,       sToken); }
 void SvtUserOptions::SetCustomerNumber (OUString const& sToken) { SetToken(USER_OPT_CUSTOMERNUMBER, sToken); }
 
 // -----------------------------------------------------------------------
diff --git a/unusedcode.easy b/unusedcode.easy
index a4612b7..1ac9306 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -7,14 +7,6 @@ ScVbaFormat<ooo::vba::excel::XRange>::setNumberFormat(com::sun::star::lang::Loca
 ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
 ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&)
 ScVbaFormat<ooo::vba::excel::XStyle>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&)
-SvtUserOptions::SetCompany(rtl::OUString const&)
-SvtUserOptions::SetCountry(rtl::OUString const&)
-SvtUserOptions::SetFax(rtl::OUString const&)
-SvtUserOptions::SetFirstName(rtl::OUString const&)
-SvtUserOptions::SetID(rtl::OUString const&)
-SvtUserOptions::SetPosition(rtl::OUString const&)
-SvtUserOptions::SetState(rtl::OUString const&)
-SvtUserOptions::SetTitle(rtl::OUString const&)
 TextEngine::GetLeftMargin() const
 ThumbnailView::GetItemCount() const
 ThumbnailView::ImplScroll(Point const&)
-- 
1.7.9.5



More information about the LibreOffice mailing list