aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-02 22:09:27 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-02 22:10:24 +0100
commitc4bc02521806d9e73d41e7cbebdb760e8b28b58a (patch)
treebc664e005ed7676090d7719575429d68aa2ecc7f
parentae7276c1c03405bace315984c6ed6e84571ec887 (diff)
Ditch World::print(ostream)
-rw-r--r--world.cpp11
-rw-r--r--world.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/world.cpp b/world.cpp
index 7674164..fecd956 100644
--- a/world.cpp
+++ b/world.cpp
@@ -317,17 +317,6 @@ Robot* World::targetbot(const Robot *r){
return *targetbotptr(r);
}
-void World::print(ostream &os) const {
- for(int y=0;y<SIZE;y++){
- for(int x=0;x<SIZE;x++){
- if(board[y][x]==nullptr)os<<"..";
- else os<<string(2,"^>v<"[board[y][x]->heading%4]);
- os<<' ';
- }
- os<<endl;
- }
-}
-
void World::print(ScreenBuffer &sb) const {
for(int y=0;y<SIZE;y++){
sb.moveto(0,y);
diff --git a/world.h b/world.h
index caaa4f0..19325fd 100644
--- a/world.h
+++ b/world.h
@@ -101,7 +101,6 @@ public:
void tick();
Robot* targetbot(const Robot *r);
- void print(ostream &os) const;
void print(ScreenBuffer &sb) const;
};