summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-06-15 09:04:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-06-15 09:04:20 -0400
commitd415fb6aaffcfacdebcf94b05de5e055f3c9e70a (patch)
tree2f8b2fe421c65963636d04576665e801a0bb168c /pango
parent00d2842d8a5ded059fc058d05b2cffcf16186710 (diff)
downloadpango-d415fb6aaffcfacdebcf94b05de5e055f3c9e70a.tar.gz
Cull some dead code
Some static analysis tool complained about dead code, and it is right in this case. https://bugzilla.gnome.org/show_bug.cgi?id=652616
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-layout.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 2610f431..4e21e25e 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -1433,7 +1433,6 @@ pango_layout_get_line (PangoLayout *layout,
{
GSList *list_item;
g_return_val_if_fail (layout != NULL, NULL);
- g_return_val_if_fail (line >= 0, NULL);
if (line < 0)
return NULL;
@@ -1479,7 +1478,6 @@ pango_layout_get_line_readonly (PangoLayout *layout,
{
GSList *list_item;
g_return_val_if_fail (layout != NULL, NULL);
- g_return_val_if_fail (line >= 0, NULL);
if (line < 0)
return NULL;