mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
Remove unnecessary comments and unnecessary return
This commit is contained in:
@@ -5856,7 +5856,7 @@ dictitem_T *dict_find(dict_T *d, char_u *key, int len)
|
|||||||
/*
|
/*
|
||||||
* Get a string item from a dictionary.
|
* Get a string item from a dictionary.
|
||||||
* When "save" is TRUE allocate memory for it.
|
* When "save" is TRUE allocate memory for it.
|
||||||
* Returns NULL if the entry doesn't exist or some other failure.
|
* Returns NULL if the entry doesn't exist.
|
||||||
*/
|
*/
|
||||||
char_u *get_dict_string(dict_T *d, char_u *key, int save)
|
char_u *get_dict_string(dict_T *d, char_u *key, int save)
|
||||||
{
|
{
|
||||||
@@ -5867,8 +5867,9 @@ char_u *get_dict_string(dict_T *d, char_u *key, int save)
|
|||||||
if (di == NULL)
|
if (di == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
s = get_tv_string(&di->di_tv);
|
s = get_tv_string(&di->di_tv);
|
||||||
if (save && s != NULL)
|
if (save) {
|
||||||
s = vim_strsave(s);
|
s = vim_strsave(s);
|
||||||
|
}
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -17419,9 +17420,6 @@ static void func_do_profile(ufunc_T *fp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fp->uf_tml_idx = -1;
|
fp->uf_tml_idx = -1;
|
||||||
if (fp->uf_tml_count == NULL || fp->uf_tml_total == NULL
|
|
||||||
|| fp->uf_tml_self == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
fp->uf_profiling = TRUE;
|
fp->uf_profiling = TRUE;
|
||||||
}
|
}
|
||||||
|
@@ -2867,7 +2867,7 @@ static char_u * console_dialog_alloc(const char_u *message,
|
|||||||
* the button is used.
|
* the button is used.
|
||||||
* The hotkeys can be multi-byte characters, but without combining chars.
|
* The hotkeys can be multi-byte characters, but without combining chars.
|
||||||
*
|
*
|
||||||
* Returns an allocated string with hotkeys, or NULL for error.
|
* Returns an allocated string with hotkeys.
|
||||||
*/
|
*/
|
||||||
static char_u *msg_show_console_dialog(char_u *message, char_u *buttons, int dfltbutton)
|
static char_u *msg_show_console_dialog(char_u *message, char_u *buttons, int dfltbutton)
|
||||||
FUNC_ATTR_NONNULL_RET
|
FUNC_ATTR_NONNULL_RET
|
||||||
|
Reference in New Issue
Block a user