From 7ec043f326e2260040272e8a07091f3d939424d9 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Fri, 16 Jun 2017 09:05:58 +1100 Subject: [PATCH] Removed an unused variable Not needed after I removed the draw() calls into the display class --- src/actions/move.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/actions/move.cpp b/src/actions/move.cpp index 16743d2210eb..623246622f46 100644 --- a/src/actions/move.cpp +++ b/src/actions/move.cpp @@ -1122,8 +1122,6 @@ namespace { // Private helpers for move_unit() // Alias some resources. game_display &disp = *resources::screen; - bool redraw = false; - // Multiple messages may be displayed simultaneously // this variable is used to keep them from overlapping std::string message_prefix = ""; @@ -1132,7 +1130,6 @@ namespace { // Private helpers for move_unit() if ( ambushed_ && show_ambush_alert_ ) { disp.announce(message_prefix + ambush_string_, font::BAD_COLOR); message_prefix += " \n"; - redraw = true; } // Failed teleport feedback? @@ -1140,7 +1137,6 @@ namespace { // Private helpers for move_unit() std::string teleport_string = _("Failed teleport! Exit not empty"); disp.announce(message_prefix + teleport_string, font::BAD_COLOR); message_prefix += " \n"; - redraw = true; } // Sighted units feedback? @@ -1170,7 +1166,6 @@ namespace { // Private helpers for move_unit() disp.announce(message_prefix + message, msg_color); message_prefix += " \n"; - redraw = true; } // Suggest "continue move"? @@ -1183,7 +1178,6 @@ namespace { // Private helpers for move_unit() std::string message = vgettext("(press $hotkey to keep moving)", symbols); disp.announce(message_prefix + message, font::NORMAL_COLOR); message_prefix += " \n"; - redraw = true; } } }