diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-01-09 19:53:21 +0100 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-01-10 10:52:21 +0100 |
commit | 85904c992e3b8bd142bdedbb3b85cd17be67b39a (patch) | |
tree | 5e861e5fbdac77afaab50ea7da9982479d26102e /src | |
parent | 31c8440fee0bd694093d83af5dee20e3c3dc876c (diff) | |
download | rneovim-85904c992e3b8bd142bdedbb3b85cd17be67b39a.tar.gz rneovim-85904c992e3b8bd142bdedbb3b85cd17be67b39a.tar.bz2 rneovim-85904c992e3b8bd142bdedbb3b85cd17be67b39a.zip |
Remove long_u: term: Remove dead code using long_u.
get_long_from_buf() seems not to be used anywhere, and is the only place
where instances of long_u remain at term.c.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/term.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/nvim/term.c b/src/nvim/term.c index fbedbd8a24..dfc42632c6 100644 --- a/src/nvim/term.c +++ b/src/nvim/term.c @@ -2115,31 +2115,6 @@ void ttest(int pairs) t_colors = atoi((char *)T_CCO); } -#if defined(FEAT_GUI) || defined(PROTO) -/* - * Interpret the next string of bytes in buf as a long integer, with the most - * significant byte first. Note that it is assumed that buf has been through - * inchar(), so that NUL and K_SPECIAL will be represented as three bytes each. - * Puts result in val, and returns the number of bytes read from buf - * (between sizeof(long_u) and 2 * sizeof(long_u)), or -1 if not enough bytes - * were present. - */ -static int get_long_from_buf(char_u *buf, long_u *val) -{ - char_u bytes[sizeof(long_u)]; - - *val = 0; - int len = get_bytes_from_buf(buf, bytes, (int)sizeof(long_u)); - if (len != -1) { - for (int i = 0; i < (int)sizeof(long_u); i++) { - int shift = 8 * (sizeof(long_u) - 1 - i); - *val += (long_u)bytes[i] << shift; - } - } - return len; -} -#endif - #if defined(FEAT_GUI) \ || (defined(FEAT_MOUSE) && (!defined(UNIX) || defined(FEAT_MOUSE_XTERM) \ || defined(FEAT_MOUSE_GPM) || defined(FEAT_SYSMOUSE))) |