mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Remove unused function free_register.
This commit is contained in:
parent
49ad606cd8
commit
9f1e486875
11
src/ops.c
11
src/ops.c
@ -811,17 +811,6 @@ void put_register(int name, void *reg)
|
||||
|
||||
}
|
||||
|
||||
void free_register(void *reg)
|
||||
{
|
||||
struct yankreg tmp;
|
||||
|
||||
tmp = *y_current;
|
||||
*y_current = *(struct yankreg *)reg;
|
||||
free_yank_all();
|
||||
vim_free(reg);
|
||||
*y_current = tmp;
|
||||
}
|
||||
|
||||
/*
|
||||
* return TRUE if the current yank register has type MLINE
|
||||
*/
|
||||
|
@ -20,7 +20,6 @@ int valid_yank_reg(int regname, int writing);
|
||||
void get_yank_register(int regname, int writing);
|
||||
void *get_register(int name, int copy) FUNC_ATTR_NONNULL_RET;
|
||||
void put_register(int name, void *reg);
|
||||
void free_register(void *reg);
|
||||
int yank_register_mline(int regname);
|
||||
int do_record(int c);
|
||||
int do_execreg(int regname, int colon, int addcr, int silent);
|
||||
|
Loading…
Reference in New Issue
Block a user