mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 16:06:16 +01:00
Remove some unused code
The function unescape_gstring_inplace was maintaining a line count without ever making use of it. Drop that.
This commit is contained in:
parent
44af2b1c17
commit
03db1f455b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user