From db27efd29761a87fe3ab946c99c18530e828e58a Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Thu, 9 Jan 2014 08:52:53 +0100 Subject: [PATCH] removed some unused code (svx, svtools, unotest) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1250581d69423030bd0a93a1529458b8d424ce3e Reviewed-on: https://gerrit.libreoffice.org/7329 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/svtools/toolpanel/toolpaneldeck.hxx | 1 - include/svx/dialcontrol.hxx | 2 -- include/unotest/bootstrapfixturebase.hxx | 3 --- svtools/source/toolpanel/toolpaneldeck.cxx | 6 ------ svx/source/dialog/dialcontrol.cxx | 5 ----- svx/source/sidebar/line/LineWidthControl.cxx | 8 -------- svx/source/sidebar/line/LineWidthControl.hxx | 1 - unotest/source/cpp/bootstrapfixturebase.cxx | 6 ------ unusedcode.easy | 4 ---- 9 files changed, 36 deletions(-) diff --git a/include/svtools/toolpanel/toolpaneldeck.hxx b/include/svtools/toolpanel/toolpaneldeck.hxx index 8ba584b12d72..3ad4fcd8ae92 100644 --- a/include/svtools/toolpanel/toolpaneldeck.hxx +++ b/include/svtools/toolpanel/toolpaneldeck.hxx @@ -155,7 +155,6 @@ namespace svt Calling this method has no effect if CreateAccessible had always been called. */ - void SetAccessibleParentWindow( ::Window* i_pAccessibleParent ); ::Window* GetAccessibleParentWindow() const; // IToolPanelDeck diff --git a/include/svx/dialcontrol.hxx b/include/svx/dialcontrol.hxx index f50cb5952b4b..06fecd1bd09b 100644 --- a/include/svx/dialcontrol.hxx +++ b/include/svx/dialcontrol.hxx @@ -119,8 +119,6 @@ public: /** The passed handler is called whenever the totation value changes. */ void SetModifyHdl( const Link& rLink ); - /** Returns the current modify handler. */ - const Link& GetModifyHdl() const; /** Save value for later comparison */ void SaveValue(); diff --git a/include/unotest/bootstrapfixturebase.hxx b/include/unotest/bootstrapfixturebase.hxx index c447f4fa626e..d69be43d013d 100644 --- a/include/unotest/bootstrapfixturebase.hxx +++ b/include/unotest/bootstrapfixturebase.hxx @@ -62,12 +62,9 @@ public: // return a Path to a given c-str path from the source directory OUString getPathFromSrc( const char *pPath ); - // return a URL to a given c-str path from the workdir directory OUString getURLFromWorkdir( const char *pPath ); - // return a Path to a given c-str path from the workdir directory - OUString getPathFromWorkdir( const char *pPath ); virtual void setUp(); virtual void tearDown(); diff --git a/svtools/source/toolpanel/toolpaneldeck.cxx b/svtools/source/toolpanel/toolpaneldeck.cxx index 81b6dacfdb8e..92cbc8743e60 100644 --- a/svtools/source/toolpanel/toolpaneldeck.cxx +++ b/svtools/source/toolpanel/toolpaneldeck.cxx @@ -515,12 +515,6 @@ namespace svt } } - //-------------------------------------------------------------------- - void ToolPanelDeck::SetAccessibleParentWindow( Window* i_pAccessibleParent ) - { - m_pImpl->SetAccessibleParentWindow( i_pAccessibleParent ); - } - //-------------------------------------------------------------------- Window* ToolPanelDeck::GetAccessibleParentWindow() const { diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx index 4a780a6cf411..2e21ec99e7ac 100644 --- a/svx/source/dialog/dialcontrol.cxx +++ b/svx/source/dialog/dialcontrol.cxx @@ -432,11 +432,6 @@ void DialControl::SetModifyHdl( const Link& rLink ) mpImpl->maModifyHdl = rLink; } -const Link& DialControl::GetModifyHdl() const -{ - return mpImpl->maModifyHdl; -} - // private -------------------------------------------------------------------- void DialControl::Init( const Size& rWinSize, const Font& rWinFont ) diff --git a/svx/source/sidebar/line/LineWidthControl.cxx b/svx/source/sidebar/line/LineWidthControl.cxx index 816f34e68e39..7db6d4cf4932 100644 --- a/svx/source/sidebar/line/LineWidthControl.cxx +++ b/svx/source/sidebar/line/LineWidthControl.cxx @@ -192,14 +192,6 @@ void LineWidthControl::GetFocus() -ValueSet& LineWidthControl::GetValueSet() -{ - return maVSWidth; -} - - - - void LineWidthControl::SetWidthSelect( long lValue, bool bValuable, SfxMapUnit eMapUnit) { mbVSFocus = true; diff --git a/svx/source/sidebar/line/LineWidthControl.hxx b/svx/source/sidebar/line/LineWidthControl.hxx index e4060f9de3cd..b9808f1b2126 100644 --- a/svx/source/sidebar/line/LineWidthControl.hxx +++ b/svx/source/sidebar/line/LineWidthControl.hxx @@ -38,7 +38,6 @@ public: virtual void Paint(const Rectangle& rect); void SetWidthSelect( long lValue, bool bValuable, SfxMapUnit eMapUnit); - ValueSet& GetValueSet(); bool IsCloseByEdit(); long GetTmpCustomWidth(); diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx index 4fd1e789138a..cc8ae3fa189a 100644 --- a/unotest/source/cpp/bootstrapfixturebase.cxx +++ b/unotest/source/cpp/bootstrapfixturebase.cxx @@ -83,12 +83,6 @@ OUString test::BootstrapFixtureBase::getURLFromWorkdir( const char *pPath ) return m_aWorkdirRootURL + OUString::createFromAscii( pPath ); } -OUString test::BootstrapFixtureBase::getPathFromWorkdir( const char *pPath ) -{ - return m_aWorkdirRootPath + OUString::createFromAscii( pPath ); - -} - void test::BootstrapFixtureBase::setUp() { // set UserInstallation to user profile dir in test/user-template diff --git a/unusedcode.easy b/unusedcode.easy index 5c244f6aa627..db50bbf40794 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -174,9 +174,5 @@ std::_Rb_tree::auto_ptr(std::auto_ptr&) std::auto_ptr::auto_ptr(std::auto_ptr_ref) svl::SharedStringPool::SharedStringPool() -svt::ToolPanelDeck::SetAccessibleParentWindow(Window*) -svx::DialControl::GetModifyHdl() const -svx::sidebar::LineWidthControl::GetValueSet() -test::BootstrapFixtureBase::getPathFromWorkdir(char const*) utl::toISO8601(com::sun::star::util::Time const&) vclmain::createApplication()