From 3caacd9c84f724fd6f8e2a732a2f4db1d161884e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Thu, 17 Jan 2013 17:17:15 +0100 Subject: [PATCH] Bag: remove a useless method --- game/bag.cpp | 13 ------------- game/bag.h | 3 --- 2 files changed, 16 deletions(-) diff --git a/game/bag.cpp b/game/bag.cpp index bfb6127..a54218d 100644 --- a/game/bag.cpp +++ b/game/bag.cpp @@ -21,8 +21,6 @@ #include -#include -#include #include // For rand() #include @@ -150,14 +148,3 @@ Bag & Bag::operator=(const Bag &iOther) } -void Bag::dumpAll() const -{ - std::pair p; - BOOST_FOREACH(p, m_tilesMap) - { - if (p.second) - fprintf(stderr, "%lc[%i] ", p.first.toChar(), p.second); - } - fprintf(stderr, "\n"); -} - diff --git a/game/bag.h b/game/bag.h index b6ad47f..e2d1367 100644 --- a/game/bag.h +++ b/game/bag.h @@ -80,9 +80,6 @@ public: /// Convenience getter on the dictionary const Dictionary & getDic() const { return m_dic; } - /// Print on stderr all the letters of the bag (for debugging purposes) - void dumpAll() const; - private: /// Dictionary const Dictionary &m_dic;