From 1081940af32c7e7f6c767a48eb03dbbde1fe8f9e Mon Sep 17 00:00:00 2001 From: rathnor Date: Fri, 10 Sep 2004 04:03:58 +0000 Subject: clean up unused variables, from Ryan O'Hara --- ChangeLog | 3 +++ src/FbTk/XLayer.cc | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 93fde91..b409e2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.11 +*04/09/10: + * Clean up some unused variables (thanks Ryan O'Hara) + FbTk/XLayer.cc *04/09/09: * tidy+replace qiv with display in screenshot, add jpg option (Han) fluxbox-generate_menu.in 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: XLayer.cc,v 1.9 2003/07/20 18:05:40 rathnor Exp $ +// $Id: XLayer.cc,v 1.10 2004/09/10 04:03:58 rathnor Exp $ #include "XLayer.hh" #include "XLayerItem.hh" @@ -53,7 +53,7 @@ void XLayer::restack() { size_t j=0; // add all the windows from each item - for (size_t i=0; it != it_end; ++it, i++) { + for (; it != it_end; ++it) { XLayerItem::Windows::const_iterator wit = (*it)->getWindows().begin(); XLayerItem::Windows::const_iterator wit_end = (*it)->getWindows().end(); for (; wit != wit_end; ++wit) { @@ -72,7 +72,7 @@ int XLayer::countWindows() { int num_windows = 0; iterator it = itemList().begin(); iterator it_end = itemList().end(); - for (size_t i=0; it != it_end; ++it, i++) { + for (; it != it_end; ++it) { num_windows += (*it)->numWindows(); } return num_windows; -- cgit v0.11.2