aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-04-10 19:00:08 +0200
committerThomas Wienecke <wienecke.t@gmail.com>2014-05-03 17:40:17 +0200
commitb8ed5dd17457377504ef934fdb9c3da3d6c6caff (patch)
treef2cf13d5b3d7be72f162fe2c5fcbaee7bde0bd6d
parent3a5f538cad15dec360dece77d201fc25f102a604 (diff)
downloadrneovim-b8ed5dd17457377504ef934fdb9c3da3d6c6caff.tar.gz
rneovim-b8ed5dd17457377504ef934fdb9c3da3d6c6caff.tar.bz2
rneovim-b8ed5dd17457377504ef934fdb9c3da3d6c6caff.zip
Remove unused function add_long_to_buf.
-rw-r--r--src/term.c15
-rw-r--r--src/term.h1
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);