diff options
-rw-r--r-- | src/term.c | 15 | ||||
-rw-r--r-- | src/term.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/term.c b/src/term.c index 0483af8401..2b52562838 100644 --- a/src/term.c +++ b/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); /* diff --git a/src/term.h b/src/term.h index cb30a64365..547b729e6e 100644 --- a/src/term.h +++ b/src/term.h @@ -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); |