From fe5f7673eac2f2937ade8d3cdd3b94d2152374c9 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Fri, 18 Oct 2024 00:28:23 -0400 Subject: [PATCH] Remove some unused variables. --- gui.cpp | 2 +- gui.hpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gui.cpp b/gui.cpp index 1d008f8..fba98a0 100644 --- a/gui.cpp +++ b/gui.cpp @@ -77,7 +77,7 @@ GUI::GUI() : $game_map(GAME_MAP_X, GAME_MAP_Y), void GUI::create_renderer() { auto player = $world.get(); - $map_view = Renderer([&, player] { + $map_view = Renderer([&] { System::draw_map($world, $game_map, $canvas, VIEW_PORT_X, VIEW_PORT_Y); return canvas($canvas); }); diff --git a/gui.hpp b/gui.hpp index fdfee0a..d7926c3 100644 --- a/gui.hpp +++ b/gui.hpp @@ -38,7 +38,6 @@ class GUI { Map $game_map; sf::SoundBuffer $hit_buf; sf::Sound $hit_sound; - bool $show_paths = false; string $status_text = "NOT DEAD"; Component $document; Component $map_view;