Remove unused function add_long_to_buf.

This commit is contained in:
Thomas Wienecke 2014-04-10 19:00:08 +02:00
parent 3a5f538cad
commit b8ed5dd174
2 changed files with 0 additions and 16 deletions

View File

@ -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);
/*

View File

@ -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);