After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 652616 - dead code
dead code
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2011-06-15 03:32 UTC by Matthias Clasen
Modified: 2011-06-15 13:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2011-06-15 03:32:46 UTC
pango_layout_get_line has:


  g_return_val_if_fail (line >= 0, NULL);

  if (line < 0)
    return NULL;

one or the other should probably go
Comment 1 Matthias Clasen 2011-06-15 03:33:32 UTC
Same for pango_layout_get_line_readonly
Comment 2 Behdad Esfahbod 2011-06-15 04:20:05 UTC
Feel free to axe the g_return_val_if_fail...