texinfo-commits
[Top][All Lists]
Advanced

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

[6659] remove unused variable


From: Gavin D. Smith
Subject: [6659] remove unused variable
Date: Wed, 30 Sep 2015 12:57:47 +0000

Revision: 6659
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6659
Author:   gavin
Date:     2015-09-30 12:57:46 +0000 (Wed, 30 Sep 2015)
Log Message:
-----------
remove unused variable

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/echo-area.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2015-09-30 10:55:14 UTC (rev 6658)
+++ trunk/ChangeLog     2015-09-30 12:57:46 UTC (rev 6659)
@@ -1,5 +1,10 @@
 2015-09-30  Gavin Smith  <address@hidden>
 
+       * info/echo-area.c (input_line_prompt): Remove unused variable.
+       (PUSHED_EA): Remove unused field 'prompt'.
+
+2015-09-30  Gavin Smith  <address@hidden>
+
        * tp/Texinfo/Parser.pm (parser) <INLINE_INSERTCOPYING>: Change
        "insercopying" to "insertcopying".
 

Modified: trunk/info/echo-area.c
===================================================================
--- trunk/info/echo-area.c      2015-09-30 10:55:14 UTC (rev 6658)
+++ trunk/info/echo-area.c      2015-09-30 12:57:46 UTC (rev 6659)
@@ -2,7 +2,7 @@
    $Id$
 
    Copyright 1993, 1997, 1998, 1999, 2001, 2004, 2007, 2008, 2011, 2013,
-   2014 Free Software Foundation, Inc.
+   2014, 2015 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -45,9 +45,6 @@
 static int input_line_beg;       /* End of prompt, and start of user input. */
 static int input_line_end;       /* End of user input. */
 
-/* Current prompt.  FIXME: This variable is not actually used for anything. */
-static const char *input_line_prompt;
-
 static NODE input_line_node = {
   NULL, NULL, NULL, input_line,
   EA_MAX_INPUT, 0, N_IsInternal
@@ -127,7 +124,6 @@
 static void
 initialize_input_line (const char *prompt)
 {
-  input_line_prompt = prompt;
   if (prompt)
     strcpy (input_line, prompt);
   else
@@ -1430,7 +1426,6 @@
 /* Push and Pop the echo area. */
 typedef struct {
   char *line;
-  const char *prompt;
   REFERENCE **comp_items;
   int point, beg, end;
   int must_complete;
@@ -1450,7 +1445,6 @@
 
   pushed = xmalloc (sizeof (PUSHED_EA));
   pushed->line = xstrdup (input_line);
-  pushed->prompt = input_line_prompt;
   pushed->point = input_line_point;
   pushed->beg = input_line_beg;
   pushed->end = input_line_end;
@@ -1474,7 +1468,6 @@
 
   strcpy (input_line, popped->line);
   free (popped->line);
-  input_line_prompt = popped->prompt;
   input_line_point = popped->point;
   input_line_beg = popped->beg;
   input_line_end = popped->end;




reply via email to

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