summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-09-07 09:50:41 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-09-07 09:50:41 -0400
commit03db1f455b4265654e237d2ad55464b4113cba8a (patch)
treed311aa2d4542d609fec905bc26e2117310985c39
parent44af2b1c17b5920052a6bb363c62d8452a570a42 (diff)
downloadglib-03db1f455b4265654e237d2ad55464b4113cba8a.tar.gz
Remove some unused code
The function unescape_gstring_inplace was maintaining a line count without ever making use of it. Drop that.
-rw-r--r--glib/gmarkup.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/glib/gmarkup.c b/glib/gmarkup.c
index bb24ec454..7103d4813 100644
--- a/glib/gmarkup.c
+++ b/glib/gmarkup.c
@@ -618,7 +618,6 @@ unescape_gstring_inplace (GMarkupParseContext *context,
GError **error)
{
char mask, *to;
- int line_num = 1;
const char *from;
gboolean normalize_attribute;
@@ -642,8 +641,6 @@ unescape_gstring_inplace (GMarkupParseContext *context,
*to = *from;
mask |= *to;
- if (*to == '\n')
- line_num++;
if (normalize_attribute && (*to == '\t' || *to == '\n'))
*to = ' ';
if (*to == '\r')
@@ -669,7 +666,6 @@ unescape_gstring_inplace (GMarkupParseContext *context,
from++;
}
- /* digit is between start and p */
errno = 0;
l = strtoul (from, &end, base);