aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-09-10 04:03:58 (GMT)
committerrathnor <rathnor>2004-09-10 04:03:58 (GMT)
commit1081940af32c7e7f6c767a48eb03dbbde1fe8f9e (patch)
tree7394fc204aea98f1d559c0e7df297a1d6880fc36 /src
parentc75a7035867ca51dd425589d801add281b823267 (diff)
downloadfluxbox_pavel-1081940af32c7e7f6c767a48eb03dbbde1fe8f9e.zip
fluxbox_pavel-1081940af32c7e7f6c767a48eb03dbbde1fe8f9e.tar.bz2
clean up unused variables, from Ryan O'Hara
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/XLayer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/XLayer.cc b/src/FbTk/XLayer.cc
index 8164444..8b3ead0 100644
--- a/src/FbTk/XLayer.cc
+++ b/src/FbTk/XLayer.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: XLayer.cc,v 1.9 2003/07/20 18:05:40 rathnor Exp $ 23// $Id: XLayer.cc,v 1.10 2004/09/10 04:03:58 rathnor Exp $
24 24
25#include "XLayer.hh" 25#include "XLayer.hh"
26#include "XLayerItem.hh" 26#include "XLayerItem.hh"
@@ -53,7 +53,7 @@ void XLayer::restack() {
53 size_t j=0; 53 size_t j=0;
54 54
55 // add all the windows from each item 55 // add all the windows from each item
56 for (size_t i=0; it != it_end; ++it, i++) { 56 for (; it != it_end; ++it) {
57 XLayerItem::Windows::const_iterator wit = (*it)->getWindows().begin(); 57 XLayerItem::Windows::const_iterator wit = (*it)->getWindows().begin();
58 XLayerItem::Windows::const_iterator wit_end = (*it)->getWindows().end(); 58 XLayerItem::Windows::const_iterator wit_end = (*it)->getWindows().end();
59 for (; wit != wit_end; ++wit) { 59 for (; wit != wit_end; ++wit) {
@@ -72,7 +72,7 @@ int XLayer::countWindows() {
72 int num_windows = 0; 72 int num_windows = 0;
73 iterator it = itemList().begin(); 73 iterator it = itemList().begin();
74 iterator it_end = itemList().end(); 74 iterator it_end = itemList().end();
75 for (size_t i=0; it != it_end; ++it, i++) { 75 for (; it != it_end; ++it) {
76 num_windows += (*it)->numWindows(); 76 num_windows += (*it)->numWindows();
77 } 77 }
78 return num_windows; 78 return num_windows;