]> granicus.if.org Git - nethack/commitdiff
Remove unused variable
authorPasi Kallinen <paxed@alt.org>
Thu, 11 Jun 2015 16:36:08 +0000 (19:36 +0300)
committerPasi Kallinen <paxed@alt.org>
Thu, 11 Jun 2015 16:36:08 +0000 (19:36 +0300)
src/options.c

index d6c7b95538f62719693a5135689a937e06b0189d..acb1f39bc8ca2554d732ebed4280360e415fa08c 100644 (file)
@@ -4805,7 +4805,6 @@ const char *mapping;
 {
     struct autopickup_exception *ape, **apehead;
     char text[256], *text2;
-    int textsize = 0;
     boolean grab = FALSE;
 
     if (sscanf(mapping, "\"%255[^\"]\"", text) == 1) {
@@ -4817,7 +4816,6 @@ const char *mapping;
             grab = FALSE;
             ++text2;
         }
-        textsize = strlen(text2);
         apehead = (grab) ? &iflags.autopickup_exceptions[AP_GRAB]
                          : &iflags.autopickup_exceptions[AP_LEAVE];
         ape = (struct autopickup_exception *) alloc(