From be2e0735887d750d79ee55ecbd4813e61443248c 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 5bd1df99f563b..e799649163e9a 100644 --- a/src/actions/move.cpp +++ b/src/actions/move.cpp @@ -1121,8 +1121,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 = ""; @@ -1131,7 +1129,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? @@ -1139,7 +1136,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? @@ -1169,7 +1165,6 @@ namespace { // Private helpers for move_unit() disp.announce(message_prefix + message, msg_color); message_prefix += " \n"; - redraw = true; } // Suggest "continue move"? @@ -1182,7 +1177,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; } } }