[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7801] replace_in_documentation remove unused variables
From: |
gavinsmith0123 |
Subject: |
[7801] replace_in_documentation remove unused variables |
Date: |
Sat, 20 May 2017 09:33:46 -0400 (EDT) |
Revision: 7801
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7801
Author: gavin
Date: 2017-05-20 09:33:45 -0400 (Sat, 20 May 2017)
Log Message:
-----------
replace_in_documentation remove unused variables
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/infodoc.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2017-05-20 13:27:50 UTC (rev 7800)
+++ trunk/ChangeLog 2017-05-20 13:33:45 UTC (rev 7801)
@@ -1,5 +1,10 @@
2017-05-20 Gavin Smith <address@hidden>
+ * info/infodoc.c (replace_in_documentation): Remove code
+ setting variables whose value is no longer used anywhere.
+
+2017-05-20 Gavin Smith <address@hidden>
+
* NEWS (info): Add item about the handling of Info files
with CR-LF line endings.
Modified: trunk/info/infodoc.c
===================================================================
--- trunk/info/infodoc.c 2017-05-20 13:27:50 UTC (rev 7800)
+++ trunk/info/infodoc.c 2017-05-20 13:33:45 UTC (rev 7801)
@@ -658,8 +658,6 @@
if (string[i] == '\\')
{
char *fmt = NULL;
- unsigned min = 0;
- unsigned max = 0;
if(string[j] == '%')
{
@@ -667,13 +665,11 @@
j++;
if (isdigit(string[j]))
{
- min = atoi(string + j);
while (isdigit(string[j]))
j++;
if (string[j] == '.' && isdigit(string[j + 1]))
{
j += 1;
- max = atoi(string + j);
while (isdigit(string[j]))
j++;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7801] replace_in_documentation remove unused variables,
gavinsmith0123 <=