diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-10 13:05:34 +0200 | 
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-10 13:05:34 +0200 | 
| commit | a842040a09cd95cf5c32f67941c7e99569a12f57 (patch) | |
| tree | ccd8f25c55d48a89343889d9b4e5cf162f5b59b2 | |
| parent | 3ed5fcd2d4d29c531f4641a8794878328410ffde (diff) | |
remove prints
| -rw-r--r-- | Canvas.cpp | 1 | ||||
| -rw-r--r-- | Deserializer.cpp | 9 | 
2 files changed, 0 insertions, 10 deletions
@@ -11,7 +11,6 @@ Tile & Canvas::get_tile(unsigned x, unsigned y) {  }  void Canvas::set_tile(unsigned x, unsigned y, TileData t) { -	printf("%s(%d, %d)\n", __FUNCTION__, x, y);  	size_t index = this->pos_to_index(x, y);  	if (this->tiles[index] != nullptr)  		delete this->tiles[index]; diff --git a/Deserializer.cpp b/Deserializer.cpp index b8311a5..4c4ee91 100644 --- a/Deserializer.cpp +++ b/Deserializer.cpp @@ -22,32 +22,23 @@ Museum & Deserializer::get_target() {  }  void Deserializer::add_artist(ArtistData data) { -	printf("add artist(%1.2f, %1.2f)...\n", data.x, data.y); -  	Museum & museum = this->get_target();  	// museum.people.add_artist(data);  }  void Deserializer::set_canvas(CanvasData data) { -	printf("set canvas(%dx%d)...\n", data.rows, data.columns); -  	Museum & museum = this->get_target();  	museum.canvas.data = data;  	museum.canvas.update();  }  void Deserializer::add_tile(unsigned int x, unsigned int y, TileData data) { -	printf("add tile(%d,%d) data(%s)...\n", x, y, data.type.c_str()); -  	Museum & museum = this->get_target();  	museum.canvas.set_tile(x, y, data);  }  void Deserializer::add_type(std::string type, Color color, unsigned int weight) {  	if (type.length() == 0) return; -	printf("add type(%s) color(#%02x%02x%02x) weight(%d)...\n", type.c_str(), -			color.red, color.green, color.blue, weight); -  	TileAppearance::register_color(type, color);  }  |