diff --git a/src/prompt.c b/src/prompt.c
index 3c40acda0c1c470a8ba44c5befa3140f0829d27a..e2d14a3104040387c5d7af369682a4c8921a06f7 100644
--- a/src/prompt.c
+++ b/src/prompt.c
@@ -729,7 +729,6 @@ int do_prompt(bool allow_tabs,
 int do_yesno_prompt(bool all, const char *msg)
 {
     int response = -2, width = 16;
-    int oldmenu = currmenu;
     /* TRANSLATORS: For the next three strings, if possible, specify
      * the single-byte shortcuts for both your language and English.
      * For example, in French: "OoYy", for both "Oui" and "Yes". */
@@ -833,8 +832,5 @@ int do_yesno_prompt(bool all, const char *msg)
 	}
     } while (response == -2);
 
-    /* Restore the previously active menu. */
-    bottombars(oldmenu);
-
     return response;
 }