mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-17 23:47:52 +02:00
Eliminate some dead code
This commit is contained in:
@@ -177,7 +177,6 @@ read_data (GString *str,
|
||||
gchar buf[4096];
|
||||
|
||||
again:
|
||||
|
||||
bytes = read (fd, buf, 4096);
|
||||
|
||||
if (bytes == 0)
|
||||
@@ -187,9 +186,9 @@ read_data (GString *str,
|
||||
g_string_append_len (str, buf, bytes);
|
||||
return READ_OK;
|
||||
}
|
||||
else if (bytes < 0 && errno == EINTR)
|
||||
else if (errno == EINTR)
|
||||
goto again;
|
||||
else if (bytes < 0)
|
||||
else
|
||||
{
|
||||
int errsv = errno;
|
||||
|
||||
@@ -201,8 +200,6 @@ read_data (GString *str,
|
||||
|
||||
return READ_FAILED;
|
||||
}
|
||||
else
|
||||
return READ_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user