tweaks: elide a parameter that is always FALSE

This commit is contained in:
Benno Schulenberg 2016-10-23 20:06:45 +02:00
parent 2cd8ca4eb1
commit 702b09c859
2 changed files with 5 additions and 22 deletions

View File

@ -1058,18 +1058,12 @@ char *get_next_filename(const char *name, const char *suffix)
return buf;
}
/* Insert a file into a new buffer if the MULTIBUFFER flag is set, or
* into the current buffer if it isn't. If execute is TRUE, insert the
* output of an executed command instead of a file. */
void do_insertfile(
#ifndef NANO_TINY
bool execute
#else
void
#endif
)
/* Insert a file into the current buffer, or into a new buffer when
* the MULTIBUFFER flag is set. */
void do_insertfile(void)
{
int i;
bool execute = FALSE;
const char *msg;
char *given = mallocstrcpy(NULL, "");
/* The last answer the user typed at the statusbar prompt. */
@ -1345,11 +1339,7 @@ void do_insertfile_void(void)
statusbar(_("Key invalid in non-multibuffer mode"));
else
#endif
do_insertfile(
#ifndef NANO_TINY
FALSE
#endif
);
do_insertfile();
}
/* When passed "[relative path]" or "[relative path][filename]" in

View File

@ -311,13 +311,6 @@ filestruct *read_line(char *buf, size_t buf_len, filestruct *prevnode);
void read_file(FILE *f, int fd, const char *filename, bool undoable, bool checkwritable);
int open_file(const char *filename, bool newfie, bool quiet, FILE **f);
char *get_next_filename(const char *name, const char *suffix);
void do_insertfile(
#ifndef NANO_TINY
bool execute
#else
void
#endif
);
void do_insertfile_void(void);
char *get_full_path(const char *origpath);
char *check_writable_directory(const char *path);