texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[5717] remove some unused local variables


From: Gavin D. Smith
Subject: [5717] remove some unused local variables
Date: Thu, 24 Jul 2014 12:31:24 +0000

Revision: 5717
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5717
Author:   gavin
Date:     2014-07-24 12:31:22 +0000 (Thu, 24 Jul 2014)
Log Message:
-----------
remove some unused local variables

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/infokey.c
    trunk/info/infomap.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-07-24 12:13:41 UTC (rev 5716)
+++ trunk/ChangeLog     2014-07-24 12:31:22 UTC (rev 5717)
@@ -1,5 +1,13 @@
 2014-07-24  Gavin Smith  <address@hidden>
 
+       * info/infokey.c (compile) <in_line_comment>: Use = where intended.
+       (compile) <get_action>: Remove unused variable.
+       * info/infomap.c (keymap_bind_keyseq): Remove unused variable.
+       (fetch_user_maps): Remove unused variables.
+       (section_to_keymaps): Remove unused variable.
+
+2014-07-24  Gavin Smith  <address@hidden>
+
        * info/window.c (collect_line_starts, _calc_line_starts): Renamed.
        * info/window.h (WINDOW): Change type of pagetop field to long.
        Remove declaration of removed function.

Modified: trunk/info/infokey.c
===================================================================
--- trunk/info/infokey.c        2014-07-24 12:13:41 UTC (rev 5716)
+++ trunk/info/infokey.c        2014-07-24 12:31:22 UTC (rev 5717)
@@ -277,9 +277,9 @@
                       && (section == info || section == ea))
                 {
                   if (section == info)
-                    *suppress_info == 1;
+                    *suppress_info = 1;
                   else
-                    *suppress_ea == 1;
+                    *suppress_ea = 1;
                 }
            }
          else if (clen < sizeof comment - 1)
@@ -442,7 +442,6 @@
                  a = lookup_action (act);
                  if (a != -1)
                    {
-                     char av = a;
                       int keymap_bind_keyseq (Keymap, int *, KEYMAP_ENTRY *);
 
                       KEYMAP_ENTRY ke;

Modified: trunk/info/infomap.c
===================================================================
--- trunk/info/infomap.c        2014-07-24 12:13:41 UTC (rev 5716)
+++ trunk/info/infomap.c        2014-07-24 12:31:22 UTC (rev 5717)
@@ -88,7 +88,6 @@
 
   while ((c = *s++) != '\0')
     {
-      FUNCTION_KEYSEQ *ks;
       switch (m[c].type)
         {
         case ISFUNC:
@@ -574,11 +573,6 @@
   char *filename = NULL;
   char *homedir;
   FILE *inf;
-  unsigned char *buf;
-  unsigned long len;
-  long nread;
-  unsigned char *p;
-  int n;
 
   /* In infokey.c */
   int compile (FILE *fp, const char *filename, int *, int *);
@@ -622,7 +616,6 @@
 {
   int *p;
   int *seq;
-  unsigned int seqlen = 0;
   enum { getseq, gotseq, getaction } state = getseq;
   
   for (p = table; (unsigned int) (p - table) < len; p++)
@@ -639,16 +632,12 @@
          
        case gotseq:
          if (!*p)
-           {
-             seqlen = p - seq;
-             state = getaction;
-           }
+            state = getaction;
          break;
          
        case getaction:
          {
            unsigned int action = *p;
-           unsigned int keyseq[256];
            KEYMAP_ENTRY ke;
            
            state = getseq;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]