0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.1.0443: unnecessary static function prototypes

Problem:    Unnecessary static function prototypes.
Solution:   Remove unnecessary prototypes.
This commit is contained in:
Bram Moolenaar
2018-09-30 21:43:26 +02:00
parent f45d747ebf
commit 6dff58f15c
61 changed files with 21 additions and 770 deletions

View File

@@ -68,7 +68,6 @@ typedef struct sn_prl_S
#if defined(FEAT_EVAL) || defined(PROTO)
static int debug_greedy = FALSE; /* batch mode debugging: don't save
and restore typeahead. */
static int get_maxbacktrace_level(void);
static void do_setdebugtracelevel(char_u *arg);
static void do_checkbacktracelevel(void);
static void do_showbacktrace(char_u *cmd);
@@ -573,7 +572,6 @@ static garray_T prof_ga = {0, 0, sizeof(struct debuggy), 4, NULL};
#define DBG_FILE 2
#define DBG_EXPR 3
static int dbg_parsearg(char_u *arg, garray_T *gap);
static linenr_T debuggy_find(int file,char_u *fname, linenr_T after, garray_T *gap, int *fp);
/*
@@ -1611,7 +1609,6 @@ profile_divide(proftime_T *tm, int count, proftime_T *tm2)
/*
* Functions for profiling.
*/
static void script_do_profile(scriptitem_T *si);
static void script_dump_profile(FILE *fd);
static proftime_T prof_wait_time;
@@ -2242,8 +2239,6 @@ can_abandon(buf_T *buf, int forceit)
|| forceit);
}
static void add_bufnum(int *bufnrs, int *bufnump, int nr);
/*
* Add a buffer number to "bufnrs", unless it's already there.
*/
@@ -2444,10 +2439,8 @@ buf_write_all(buf_T *buf, int forceit)
* Code to handle the argument list.
*/
static char_u *do_one_arg(char_u *str);
static int do_arglist(char_u *str, int what, int after, int will_edit);
static void alist_check_arg_idx(void);
static int editing_arg_idx(win_T *win);
static void alist_add_list(int count, char_u **files, int after, int will_edit);
#define AL_SET 1
#define AL_ADD 2
@@ -4299,8 +4292,6 @@ static char_u *get_one_sourceline(struct source_cookie *sp);
#if (defined(WIN32) && defined(FEAT_CSCOPE)) || defined(HAVE_FD_CLOEXEC)
# define USE_FOPEN_NOINH
static FILE *fopen_noinh_readbin(char *filename);
/*
* Special function to open a file without handle inheritance.
* When possible the handle is closed on exec().
@@ -5291,8 +5282,6 @@ ex_checktime(exarg_T *eap)
#if (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
&& (defined(FEAT_EVAL) || defined(FEAT_MULTI_LANG))
# define HAVE_GET_LOCALE_VAL
static char_u *get_locale_val(int what);
static char_u *
get_locale_val(int what)
{
@@ -5410,8 +5399,6 @@ get_mess_lang(void)
|| ((defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \
&& (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE)) \
&& !defined(LC_MESSAGES))
static char_u *get_mess_env(void);
/*
* Get the language used for messages from the environment.
*/