mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Remove unused function add_long_to_buf.
This commit is contained in:
parent
3a5f538cad
commit
b8ed5dd174
15
src/term.c
15
src/term.c
@ -2327,21 +2327,6 @@ void ttest(int pairs)
|
||||
|
||||
#if (defined(FEAT_GUI) && (defined(FEAT_MENU) || !defined(USE_ON_FLY_SCROLL))) \
|
||||
|| defined(PROTO)
|
||||
/*
|
||||
* Represent the given long_u as individual bytes, with the most significant
|
||||
* byte first, and store them in dst.
|
||||
*/
|
||||
void add_long_to_buf(long_u val, char_u *dst)
|
||||
{
|
||||
int i;
|
||||
int shift;
|
||||
|
||||
for (i = 1; i <= (int)sizeof(long_u); i++) {
|
||||
shift = 8 * (sizeof(long_u) - i);
|
||||
dst[i - 1] = (char_u) ((val >> shift) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
static int get_long_from_buf(char_u *buf, long_u *val);
|
||||
|
||||
/*
|
||||
|
@ -24,7 +24,6 @@ void term_fg_color(int n);
|
||||
void term_bg_color(int n);
|
||||
void term_settitle(char_u *title);
|
||||
void ttest(int pairs);
|
||||
void add_long_to_buf(long_u val, char_u *dst);
|
||||
void check_shellsize(void);
|
||||
void limit_screen_size(void);
|
||||
void win_new_shellsize(void);
|
||||
|
Loading…
Reference in New Issue
Block a user