sd/source/ui/framework/module/ResourceManager.cxx | 21 ---------- sd/source/ui/framework/module/ResourceManager.hxx | 14 ------ sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx | 21 ---------- sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx | 20 --------- sd/source/ui/view/ViewShellBase.cxx | 14 ------ unusedcode.easy | 4 - 6 files changed, 94 deletions(-)
New commits: commit 6dfbd3324f43ff5b90030462b92ad8c0da3f6dd7 Author: Marcos Paulo de Souza <[email protected]> Date: Mon Oct 15 01:06:49 2012 -0300 Remove some unused methods Change-Id: Ia9ed975309c6ed677437c6e1c2d6be4a8bd6f1e9 Signed-off-by: Marcos Paulo de Souza <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/875 Reviewed-by: Petr Mladek <[email protected]> Tested-by: Petr Mladek <[email protected]> diff --git a/sd/source/ui/framework/module/ResourceManager.cxx b/sd/source/ui/framework/module/ResourceManager.cxx index 0cf323c..49a40be 100644 --- a/sd/source/ui/framework/module/ResourceManager.cxx +++ b/sd/source/ui/framework/module/ResourceManager.cxx @@ -125,27 +125,6 @@ void SAL_CALL ResourceManager::disposing (void) } } - - - -void ResourceManager::Enable (void) -{ - mbIsEnabled = true; - UpdateForMainViewShell(); -} - - - - -void ResourceManager::Disable (void) -{ - mbIsEnabled = false; - UpdateForMainViewShell(); -} - - - - void SAL_CALL ResourceManager::notifyConfigurationChange ( const ConfigurationChangeEvent& rEvent) throw (RuntimeException) diff --git a/sd/source/ui/framework/module/ResourceManager.hxx b/sd/source/ui/framework/module/ResourceManager.hxx index cd69661..c206877 100644 --- a/sd/source/ui/framework/module/ResourceManager.hxx +++ b/sd/source/ui/framework/module/ResourceManager.hxx @@ -67,20 +67,6 @@ public: virtual void SAL_CALL disposing (void); - /** Allow the ResourceManager to make resource activation or - deactivation requests. - */ - void Enable (void); - - /** Disable the resource management. When called, the ResourceManager - requests the resource to be deactivated. Until enabled again it - does not make any further requests for resource activation or - deactivation. - - Call this for example to hide resources in read-only mode. - */ - void Disable (void); - // XConfigurationChangeListener virtual void SAL_CALL notifyConfigurationChange ( diff --git a/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx b/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx index c703d64..eaefe02 100644 --- a/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx +++ b/sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx @@ -36,27 +36,6 @@ namespace sd { namespace slidesorter { namespace controller { - -double AnimationFunction::Linear (const double nTime) -{ - OSL_ASSERT(nTime>=0.0 && nTime<=1.0); - return nTime; -} - - - - -double AnimationFunction::Blend ( - const double nStartValue, - const double nEndValue, - const double nTime) -{ - return nStartValue*(1-nTime) + nEndValue*nTime; -} - - - - //===== AnimationBezierFunction =============================================== AnimationBezierFunction::AnimationBezierFunction ( diff --git a/sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx b/sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx index 8f11973..b94ac65 100644 --- a/sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx +++ b/sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx @@ -44,26 +44,6 @@ class SlideSorterView; namespace sd { namespace slidesorter { namespace controller { -/** A collection of functions that are usefull when creating animations. - They are collected here until a better place is found. -*/ -class AnimationFunction - : private ::boost::noncopyable -{ -public: - /** Acceleration function that maps [0,1] to [0,1] linearly, ie it - returns the given time value unaltered. - */ - static double Linear (const double nTime); - - /** Blend two points together according to the given weight. - */ - static double Blend (const double nStartValue, const double nEndValue, const double nWeight); -}; - - - - class AnimationBezierFunction { public: diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index d5d1ded..414dc5d 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -239,25 +239,11 @@ SfxViewShell* ViewShellBase::CreateInstance ( pBase->LateInit(""); return pBase; } -void ViewShellBase::RegisterFactory( sal_uInt16 nPrio ) -{ - pFactory = new SfxViewFactory( &CreateInstance,nPrio,"Default" ); - InitFactory(); -} -void ViewShellBase::InitFactory() -{ - SFX_VIEW_REGISTRATION(DrawDocShell); -} - - SFX_IMPL_INTERFACE(ViewShellBase, SfxViewShell, SdResId(0)) { } - - - ViewShellBase::ViewShellBase ( SfxViewFrame* _pFrame, SfxViewShell*) diff --git a/unusedcode.easy b/unusedcode.easy index c3ee05a..9d9d3a6 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -85,9 +85,5 @@ sd::LeftDrawPaneShell::RegisterInterface(SfxModule*) sd::LeftImpressPaneShell::RegisterInterface(SfxModule*) sd::ToolPanelPaneShell::RegisterInterface(SfxModule*) sd::ViewShellBase::RegisterFactory(unsigned short) -sd::framework::ResourceManager::Disable() -sd::framework::ResourceManager::Enable() -sd::slidesorter::controller::AnimationFunction::Blend(double, double, double) -sd::slidesorter::controller::AnimationFunction::Linear(double) std::__cxx1998::vector<SfxFilter*, std::allocator<SfxFilter*> >::~vector() std::__cxx1998::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::~vector() _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
