projects
/
platform
/
upstream
/
pango.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00d2842
)
Cull some dead code
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 15 Jun 2011 13:04:20 +0000
(09:04 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 15 Jun 2011 13:04:20 +0000
(09:04 -0400)
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
patch
|
blob
|
history
diff --git
a/pango/pango-layout.c
b/pango/pango-layout.c
index
2610f43
..
4e21e25
100644
(file)
--- 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;