From: David Lawrence Ramsey Date: Mon, 22 Sep 2003 15:46:21 +0000 (+0000) Subject: remove abcd(); the low-level input overhaul left it unused X-Git-Tag: v1.3.0~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f0b7dcaa993dc1c3578f1677f33fbac1e2ebb771;p=nano.git remove abcd(); the low-level input overhaul left it unused git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1556 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 6f81e063..ed5a9589 100644 --- a/ChangeLog +++ b/ChangeLog @@ -83,6 +83,9 @@ CVS code - - Document the support for Esc Esc [character]'s being interpreted as Ctrl-[character], and the support for Pico's Esc Esc [three-digit decimal ASCII code] input method. (DLR) + abcd() + - Removed, as it's unneeded due to the low-level input overhaul. + (DLR) - nano.h: - Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as slang has no equivalent of either. When nano is compiled with diff --git a/src/nano.c b/src/nano.c index 0e329b81..b0665557 100644 --- a/src/nano.c +++ b/src/nano.c @@ -3016,29 +3016,6 @@ void do_toggle(const toggle *which) } #endif /* !NANO_SMALL */ -/* This function returns the correct keystroke, given the A,B,C or D - input key. This is a common sequence of many terms which send - Esc-O-[A-D] or Esc-[-[A-D]. */ -int abcd(int input) -{ - switch (input) { - case 'A': - case 'a': - return KEY_UP; - case 'B': - case 'b': - return KEY_DOWN; - case 'C': - case 'c': - return KEY_RIGHT; - case 'D': - case 'd': - return KEY_LEFT; - default: - return 0; - } -} - int main(int argc, char *argv[]) { int optchr; diff --git a/src/proto.h b/src/proto.h index 138a4269..a671b9346 100644 --- a/src/proto.h +++ b/src/proto.h @@ -331,7 +331,6 @@ void print_numlock_warning(void); #ifndef NANO_SMALL void do_toggle(const toggle *which); #endif -int abcd(int input); /* Public functions in rcfile.c */ #ifdef ENABLE_NANORC