all repos — fluxbox @ 1081940af32c7e7f6c767a48eb03dbbde1fe8f9e

custom fork of the fluxbox windowmanager

clean up unused variables, from Ryan O'Hara
rathnor rathnor
commit

1081940af32c7e7f6c767a48eb03dbbde1fe8f9e

parent

c75a7035867ca51dd425589d801add281b823267

2 files changed, 6 insertions(+), 3 deletions(-)

jump to
M ChangeLogChangeLog

@@ -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
M src/FbTk/XLayer.ccsrc/FbTk/XLayer.cc

@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ Window *winlist = new Window[num_windows];

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;