diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-07 13:26:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-07 13:47:04 +0100 |
commit | 6ead5e3238a1933ffdd64956e1722266bf9e88bc (patch) | |
tree | ca24ba333d1a0544c8a0f5142971034eaf9bc31d /sd | |
parent | 867fdeaac288b11bced0e921ad5e443d27f99237 (diff) |
coverity#708138 VisualState::SetMouseOverState sets things that noone reads
Change-Id: Ifc78a7c656520b779559362e309f6971ecb1f573
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx | 4 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/model/SlsVisualState.cxx | 10 |
2 files changed, 0 insertions, 14 deletions
diff --git a/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx b/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx index 729954b1817e..d6712e24b0e3 100644 --- a/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx +++ b/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx @@ -49,8 +49,6 @@ public: void UpdateVisualState (const PageDescriptor& rDescriptor); - void SetMouseOverState (const bool bIsMouseOver); - Point GetLocationOffset (void) const; bool SetLocationOffset (const Point& rPoint); @@ -60,8 +58,6 @@ private: State meCurrentVisualState; State meOldVisualState; sal_Int32 mnStateAnimationId; - bool mbOldMouseOverState; - bool mbCurrentMouseOverState; Point maLocationOffset; sal_Int32 mnLocationAnimationId; diff --git a/sd/source/ui/slidesorter/model/SlsVisualState.cxx b/sd/source/ui/slidesorter/model/SlsVisualState.cxx index ce54abb01798..b097eda592cc 100644 --- a/sd/source/ui/slidesorter/model/SlsVisualState.cxx +++ b/sd/source/ui/slidesorter/model/SlsVisualState.cxx @@ -62,18 +62,8 @@ void VisualState::UpdateVisualState (const PageDescriptor& rDescriptor) SetVisualState(VS_Selected); else SetVisualState(VS_None); - - SetMouseOverState(rDescriptor.HasState(PageDescriptor::ST_MouseOver)); -} - - -void VisualState::SetMouseOverState (const bool bIsMouseOver) -{ - mbOldMouseOverState = mbCurrentMouseOverState; - mbCurrentMouseOverState = bIsMouseOver; } - Point VisualState::GetLocationOffset (void) const { return maLocationOffset; |