Deleting another unneeded variable. Fully redundant.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5746 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2016-03-19 17:19:30 +00:00
parent 3dee81bfaa
commit fc1edf28ce
2 changed files with 2 additions and 4 deletions

View File

@ -5,6 +5,7 @@
current answer to the empty string, as do_prompt() can handle a NULL. current answer to the empty string, as do_prompt() can handle a NULL.
* src/browser.c (do_browser): Delete a snippet of dead code. * src/browser.c (do_browser): Delete a snippet of dead code.
* src/browser.c (do_browser): Delete an unneeded variable. * src/browser.c (do_browser): Delete an unneeded variable.
* src/search.c (do_gotolinecolumn): Delete another unneeded variable.
2016-03-17 Benno Schulenberg <bensberg@justemail.net> 2016-03-17 Benno Schulenberg <bensberg@justemail.net>
* src/search.c (do_research): Use the Search key bindings also during * src/search.c (do_research): Use the Search key bindings also during

View File

@ -918,7 +918,6 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer,
bool interactive) bool interactive)
{ {
if (interactive) { if (interactive) {
char *ans = mallocstrcpy(NULL, answer);
functionptrtype func; functionptrtype func;
/* Ask for the line and column. */ /* Ask for the line and column. */
@ -926,15 +925,13 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer,
#ifndef DISABLE_TABCOMP #ifndef DISABLE_TABCOMP
TRUE, TRUE,
#endif #endif
MGOTOLINE, use_answer ? ans : "", MGOTOLINE, use_answer ? answer : NULL,
#ifndef DISABLE_HISTORIES #ifndef DISABLE_HISTORIES
NULL, NULL,
#endif #endif
/* TRANSLATORS: This is a prompt. */ /* TRANSLATORS: This is a prompt. */
edit_refresh, _("Enter line number, column number")); edit_refresh, _("Enter line number, column number"));
free(ans);
/* Cancel, or Enter with blank string. */ /* Cancel, or Enter with blank string. */
if (i < 0) { if (i < 0) {
statusbar(_("Cancelled")); statusbar(_("Cancelled"));