Date: prev next · Thread: first prev next last


Olá Marcos

Muito bom mesmo...

Um detalhe: O arquivo unusedcode.easy é gerado automaticamente, não é
necessário mexer nele depois de detonar as classe/métodos que ele aponta.

Abs
Olivier
PS: você está usando o comando "git format-patch", conforme indicado em
http://tinyurl.com/btvkdvu ?


-------- Mensagem original --------
Assunto: [PATCH] Remove unused methods
Data: Fri, 28 Sep 2012 18:23:23 -0300
De: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Para: libreoffice@lists.freedesktop.org
CC: Marcos Paulo de Souza <marcos.souza.org@gmail.com>

Just a cleanup.

Change-Id: I8fc47c39ede4e5b06af2144667ede5e9c2d5b397
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@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

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

-- 
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
The Document Foundation, Zimmerstr. 69, 10117 Berlin, Germany
Fundação responsável civilmente, de acordo com o direito civil
Detalhes Legais: http://www.documentfoundation.org/imprint
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812



-- 
Olivier Hallot
Comunidade LibreOffice

-- 
Você está recebendo e-mails da lista dev@pt-br.libreoffice.org
# Informações sobre os comandos disponíveis (em inglês):
  mande e-mail vazio para dev+help@pt-br.libreoffice.org
# Cancelar sua assinatura: mande e-mail vazio para:
  dev+unsubscribe@pt-br.libreoffice.org
# Arquivo de mensagens: http://listarchives.libreoffice.org/pt-br/dev

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.