]> git.eshelyaron.com Git - emacs.git/commitdiff
(encode_coding): Use precomputed value of `src'.
authorPavel Janík <Pavel@Janik.cz>
Fri, 9 Nov 2001 08:02:08 +0000 (08:02 +0000)
committerPavel Janík <Pavel@Janik.cz>
Fri, 9 Nov 2001 08:02:08 +0000 (08:02 +0000)
(encode_coding): Remove unused variable `src_end'.
(code_convert_region): Remove unused variables `count'.

src/ChangeLog
src/coding.c

index 5cee3a4b94bd274d3c654e228ce253727b718594..4ac5ee529670b94eb0087882fda633e0a5b4f47b 100644 (file)
@@ -8,6 +8,10 @@
 
        * indent.c (current_column_1): Remove unused variable `prev_col'.
 
+       * coding.c (encode_coding): Use precomputed value of `src'.
+       (encode_coding): Remove unused variable `src_end'.
+       (code_convert_region): Remove unused variables `count'.
+
 2001-11-07  Jason Rumney  <jasonr@gnu.org>
 
        * w32term.c (x_display_and_set_cursor): Do not move system caret
index f51224295532e30f910b802bb1d02c8161999c34..6824df089a4299c0a54d52a70bf9a81affccb382 100644 (file)
@@ -4827,7 +4827,6 @@ encode_coding (coding, source, destination, src_bytes, dst_bytes)
       && coding->result == CODING_FINISH_INSUFFICIENT_SRC)
     {
       unsigned char *src = source + coding->consumed;
-      unsigned char *src_end = src + src_bytes;
       unsigned char *dst = destination + coding->produced;
 
       if (coding->type == coding_type_iso2022)
@@ -4838,7 +4837,7 @@ encode_coding (coding, source, destination, src_bytes, dst_bytes)
        {
          int len = src_bytes - coding->consumed;
 
-         BCOPY_SHORT (source + coding->consumed, dst, len);
+         BCOPY_SHORT (src, dst, len);
          if (coding->src_multibyte)
            len = str_as_unibyte (dst, len);
          dst += len;
@@ -5394,7 +5393,6 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
          new buffer.  */
       struct buffer *prev = current_buffer;
       Lisp_Object new;
-      int count = specpdl_ptr - specpdl;
 
       record_unwind_protect (code_convert_region_unwind, Qnil);
       /* We should not call any more pre-write/post-read-conversion
@@ -5728,7 +5726,6 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
       && ! encodep && ! NILP (coding->post_read_conversion))
     {
       Lisp_Object val;
-      int count = specpdl_ptr - specpdl;
 
       if (from != PT)
        TEMP_SET_PT_BOTH (from, from_byte);