texinfo-commits
[Top][All Lists]
Advanced

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

[6914] info/terminal.c remove unused variables


From: Gavin D. Smith
Subject: [6914] info/terminal.c remove unused variables
Date: Sat, 02 Jan 2016 17:36:05 +0000

Revision: 6914
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6914
Author:   gavin
Date:     2016-01-02 17:36:03 +0000 (Sat, 02 Jan 2016)
Log Message:
-----------
info/terminal.c remove unused variables

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/pcterm.c
    trunk/info/terminal.c
    trunk/info/terminal.h

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-01-02 16:37:54 UTC (rev 6913)
+++ trunk/ChangeLog     2016-01-02 17:36:03 UTC (rev 6914)
@@ -1,5 +1,13 @@
 2016-01-02  Gavin Smith  <address@hidden>
 
+       * info/terminal.c (term_mm, terminal_has_meta_p): Remove unused 
+       variables.
+       * info/terminal.c (terminal_initialize_terminal),
+       * info/pcterm.c (pc_initialize_terminal): Don't refer to removed 
+       variables.
+
+2016-01-02  Gavin Smith  <address@hidden>
+
        * doc/texinfo.texi (Node Menu Illustration): Change "copy of 
        diagram" to "diagram".
 

Modified: trunk/info/pcterm.c
===================================================================
--- trunk/info/pcterm.c 2016-01-02 16:37:54 UTC (rev 6913)
+++ trunk/info/pcterm.c 2016-01-02 17:36:03 UTC (rev 6914)
@@ -1117,9 +1117,8 @@
 /* Initialize the terminal which is known as TERMINAL_NAME.  If this
    terminal doesn't have cursor addressability, `terminal_is_dumb_p'
    becomes nonzero.  The variables SCREENHEIGHT and SCREENWIDTH are set
-   to the dimensions that this terminal actually has.  The variable
-   TERMINAL_HAS_META_P becomes nonzero if this terminal supports a Meta
-   key.  Finally, the terminal screen is cleared. */
+   to the dimensions that this terminal actually has.  Finally, the
+   terminal screen is cleared. */
 static void
 pc_initialize_terminal (term_name)
     char *term_name;
@@ -1188,9 +1187,6 @@
   if (!speech_friendly)
     terminal_has_visible_bell_p = 1;
 
-  /* We have a Meta key.  */
-  terminal_has_meta_p = 1;
-
   /* We are *certainly* NOT dumb!  */
   terminal_is_dumb_p = 0;
 

Modified: trunk/info/terminal.c
===================================================================
--- trunk/info/terminal.c       2016-01-02 16:37:54 UTC (rev 6913)
+++ trunk/info/terminal.c       2016-01-02 17:36:03 UTC (rev 6914)
@@ -120,9 +120,6 @@
 /* A visible bell, if the terminal can be made to flash the screen. */
 static char *visible_bell;
 
-/* The string to write to turn on the meta key, if this term has one. */
-static char *term_mm;
-
 /* The string to turn on inverse mode, if this term has one. */
 static char *term_invbeg;
 
@@ -259,9 +256,6 @@
 /* Non-zero means this terminal can't really do anything. */
 int terminal_is_dumb_p = 0;
 
-/* Non-zero means that this terminal has a meta key. */
-int terminal_has_meta_p = 0;
-
 /* Non-zero means that this terminal can produce a visible bell. */
 int terminal_has_visible_bell_p = 0;
 
@@ -903,9 +897,8 @@
 /* Initialize the terminal which is known as TERMINAL_NAME.  If this
    terminal doesn't have cursor addressability, `terminal_is_dumb_p'
    becomes nonzero.  The variables SCREENHEIGHT and SCREENWIDTH are set
-   to the dimensions that this terminal actually has.  The variable
-   TERMINAL_HAS_META_P becomes nonzero if this terminal supports a Meta
-   key.  Get and save various termcap strings. */
+   to the dimensions that this terminal actually has.  Get and save various
+   termcap strings. */
 void
 terminal_initialize_terminal (char *terminal_name)
 {
@@ -1052,17 +1045,6 @@
   term_keypad_on = tgetstr ("ks", &buffer);
   term_keypad_off = tgetstr ("ke", &buffer);
 
-  /* Check to see if this terminal has a meta key. */
-  terminal_has_meta_p = (tgetflag ("km") || tgetflag ("MT"));
-  if (terminal_has_meta_p)
-    {
-      term_mm = tgetstr ("mm", &buffer);
-    }
-  else
-    {
-      term_mm = NULL;
-    }
-
   /* Attempt to find the arrow keys.  */
   term_ku = tgetstr ("ku", &buffer);
   term_kd = tgetstr ("kd", &buffer);

Modified: trunk/info/terminal.h
===================================================================
--- trunk/info/terminal.h       2016-01-02 16:37:54 UTC (rev 6913)
+++ trunk/info/terminal.h       2016-01-02 17:36:03 UTC (rev 6914)
@@ -35,9 +35,6 @@
 /* Non-zero means this terminal can't really do anything. */
 extern int terminal_is_dumb_p;
 
-/* Non-zero means that this terminal has a meta key. */
-extern int terminal_has_meta_p;
-
 /* Non-zero means that this terminal can produce a visible bell. */
 extern int terminal_has_visible_bell_p;
 
@@ -53,8 +50,7 @@
 /* Initialize the terminal which is known as TERMINAL_NAME.  If this terminal
    doesn't have cursor addressability, TERMINAL_IS_DUMB_P becomes non-zero.
    The variables SCREENHEIGHT and SCREENWIDTH are set to the dimensions that
-   this terminal actually has.  The variable TERMINAL_HAS_META_P becomes non-
-   zero if this terminal supports a Meta key. */
+   this terminal actually has. */
 extern void terminal_initialize_terminal (char *terminal_name);
 extern VFunction *terminal_initialize_terminal_hook;
 




reply via email to

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