clean up unused variables, from Ryan O'Hara
rathnor rathnor
2 files changed,
6 insertions(+),
3 deletions(-)
M
src/FbTk/XLayer.cc
→
src/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;