summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2013-03-18 00:36:01 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2013-03-18 00:36:01 +0000
commit6753a094002684a8f14232934c9cdeba13e00e8e (patch)
tree89a64604fcee875bc79d899e21a2547af3965e60 /src/ui
parentextensions. hpgl output. further patch 2 by TimeWaster (Bug 1118663) (diff)
downloadinkscape-6753a094002684a8f14232934c9cdeba13e00e8e.tar.gz
inkscape-6753a094002684a8f14232934c9cdeba13e00e8e.zip
Fix -Wunused-function warnings
(bzr r12221)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/control-manager.cpp12
-rw-r--r--src/ui/widget/layer-selector.cpp11
2 files changed, 0 insertions, 23 deletions
diff --git a/src/ui/control-manager.cpp b/src/ui/control-manager.cpp
index b14f27b8b..9357a17ff 100644
--- a/src/ui/control-manager.cpp
+++ b/src/ui/control-manager.cpp
@@ -37,23 +37,11 @@ ControlFlags operator |(ControlFlags lhs, ControlFlags rhs)
return static_cast<ControlFlags>(static_cast<int>(lhs) | static_cast<int>(rhs));
}
-ControlFlags& operator |=(ControlFlags &lhs, ControlFlags rhs)
-{
- lhs = lhs | rhs;
- return lhs;
-}
-
ControlFlags operator &(ControlFlags lhs, ControlFlags rhs)
{
return static_cast<ControlFlags>(static_cast<int>(lhs) & static_cast<int>(rhs));
}
-ControlFlags& operator &=(ControlFlags &lhs, ControlFlags rhs)
-{
- lhs = lhs & rhs;
- return lhs;
-}
-
ControlFlags operator ^(ControlFlags lhs, ControlFlags rhs)
{
return static_cast<ControlFlags>(static_cast<int>(lhs) ^ static_cast<int>(rhs));
diff --git a/src/ui/widget/layer-selector.cpp b/src/ui/widget/layer-selector.cpp
index fbb9c0e24..7b1a8dbfb 100644
--- a/src/ui/widget/layer-selector.cpp
+++ b/src/ui/widget/layer-selector.cpp
@@ -163,17 +163,6 @@ LayerSelector::~LayerSelector() {
_selection_changed_connection.disconnect();
}
-namespace {
-
-/** Helper function - detaches desktop from selector
- */
-bool detach(LayerSelector *selector) {
- selector->setDesktop(NULL);
- return FALSE;
-}
-
-}
-
/** Sets the desktop for the widget. First disconnects signals
* for the current desktop, then stores the pointer to the
* given \a desktop, and attaches its signals to this one.