From f7eb3350cae6e2e41e8b5a23264a3fb78d6fe539 Mon Sep 17 00:00:00 2001 From: Kevin Granade Date: Mon, 19 Aug 2013 19:59:26 -0500 Subject: [PATCH] Remove some unused variables. --- iuse.cpp | 2 +- sdlcurse.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/iuse.cpp b/iuse.cpp index 2d1a5f709ba00..9d5e1f8898c1a 100644 --- a/iuse.cpp +++ b/iuse.cpp @@ -96,7 +96,7 @@ static bool inscribe_item( game *g, player *p, std::string verb, std::string ger } std::map::const_iterator ent = cut->item_vars.find("item_note"); - std::map::const_iterator entprefix = cut->item_vars.find("item_note_type"); + bool hasnote = (ent != cut->item_vars.end()); std::string message = ""; std::string messageprefix = string_format( hasnote ? _("(To delete, input one '.')\n") : "" ) + diff --git a/sdlcurse.cpp b/sdlcurse.cpp index c37d0d4affbf6..3c85bc8ab2a6a 100644 --- a/sdlcurse.cpp +++ b/sdlcurse.cpp @@ -72,7 +72,6 @@ bool fexists(const char *filename) //Registers, creates, and shows the Window!! bool WinCreate() { - const SDL_VideoInfo* video_info; int init_flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER; if(SDL_Init(init_flags) < 0)