diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-02 22:46:57 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-02 22:46:57 -0700 |
commit | 0bc0b309f6023bbfe14683095bea3bbf536b4602 (patch) | |
tree | 1c2efe9eafbdb8b3ae1e3855622fe5324355a571 /src/fns.c | |
parent | e610eacace2a338cdc868db135863a9fea04d2bc (diff) | |
download | emacs-0bc0b309f6023bbfe14683095bea3bbf536b4602.tar.gz |
* fns.c (substring_both): Remove var that is set but not used.
Diffstat (limited to 'src/fns.c')
-rw-r--r-- | src/fns.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/fns.c b/src/fns.c index bce922859d1..8346dbc690a 100644 --- a/src/fns.c +++ b/src/fns.c @@ -1247,17 +1247,10 @@ substring_both (Lisp_Object string, EMACS_INT from, EMACS_INT from_byte, { Lisp_Object res; EMACS_INT size; - EMACS_INT size_byte; CHECK_VECTOR_OR_STRING (string); - if (STRINGP (string)) - { - size = SCHARS (string); - size_byte = SBYTES (string); - } - else - size = ASIZE (string); + size = STRINGP (string) ? SCHARS (string) : ASIZE (string); if (!(0 <= from && from <= to && to <= size)) args_out_of_range_3 (string, make_number (from), make_number (to)); |