[pango] Cull some dead code



commit d415fb6aaffcfacdebcf94b05de5e055f3c9e70a
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 15 09:04:20 2011 -0400

    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

 pango/pango-layout.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 2610f43..4e21e25 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]