summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2012-10-15 01:06:49 -0300
committerPetr Mladek <pmladek@suse.cz>2012-10-16 13:20:19 +0000
commit6dfbd3324f43ff5b90030462b92ad8c0da3f6dd7 (patch)
treefb964115ea3a3433ce81deacfe6adc77ef6d5d8a /sd
parent40a4c469dff783736ba69ec4134e3c23e78b2769 (diff)
Remove some unused methods
Change-Id: Ia9ed975309c6ed677437c6e1c2d6be4a8bd6f1e9 Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/875 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/framework/module/ResourceManager.cxx21
-rw-r--r--sd/source/ui/framework/module/ResourceManager.hxx14
-rw-r--r--sd/source/ui/slidesorter/controller/SlsAnimationFunction.cxx21
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx20
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx14
5 files changed, 0 insertions, 90 deletions
diff --git a/sd/source/ui/framework/module/ResourceManager.cxx b/sd/source/ui/framework/module/ResourceManager.cxx
index 0cf323ca5ede..49a40be984d0 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 cd696619df88..c206877454cf 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 c703d64e81fc..eaefe0207b23 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 8f119739e898..b94ac65895ba 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 d5d1ded0d196..414dc5d736ab 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*)