aboutsummaryrefslogtreecommitdiff
path: root/src/SystemTray.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-03 17:43:44 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-03 17:43:44 (GMT)
commitbd519dd95200aa432fb3b431a4244ffb25c5de93 (patch)
tree3786141d1d990286446639850d46f9cb180408ee /src/SystemTray.cc
parent11974fa40a69a2fb25598330afddbac4901592fc (diff)
downloadfluxbox-bd519dd95200aa432fb3b431a4244ffb25c5de93.zip
fluxbox-bd519dd95200aa432fb3b431a4244ffb25c5de93.tar.bz2
Remove various unused variables
Clang and Gcc-4.9 complaint about some unused variables here and there. And who are we to not make a compiler happy :)
Diffstat (limited to 'src/SystemTray.cc')
-rw-r--r--src/SystemTray.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/SystemTray.cc b/src/SystemTray.cc
index 846181f..9811508 100644
--- a/src/SystemTray.cc
+++ b/src/SystemTray.cc
@@ -75,18 +75,15 @@ public:
75 int actual_format; 75 int actual_format;
76 unsigned long nitems, bytes_after; 76 unsigned long nitems, bytes_after;
77 unsigned long *prop; 77 unsigned long *prop;
78 bool mapped = false;
79 Atom embed_info = SystemTray::getXEmbedInfoAtom(); 78 Atom embed_info = SystemTray::getXEmbedInfoAtom();
80 if (property(embed_info, 0l, 2l, false, embed_info, 79 if (property(embed_info, 0l, 2l, false, embed_info,
81 &actual_type, &actual_format, &nitems, &bytes_after, 80 &actual_type, &actual_format, &nitems, &bytes_after,
82 (unsigned char **) &prop) && prop != 0) { 81 (unsigned char **) &prop) && prop != 0) {
83 mapped = (bool)(static_cast<unsigned long>(prop[1]) & XEMBED_MAPPED);
84 XFree(static_cast<void *>(prop));
85
86
87 fbdbg<<"(SystemTray::TrayWindow::getMappedDefault(): XEMBED_MAPPED = "<<mapped<<endl;
88
89 82
83 XFree(static_cast<void *>(prop));
84 fbdbg << "(SystemTray::TrayWindow::getMappedDefault(): XEMBED_MAPPED = "
85 << (bool)(static_cast<unsigned long>(prop[1]) & XEMBED_MAPPED)
86 << endl;
90 } 87 }
91 return true; 88 return true;
92 } 89 }