mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 21:08:10 +02:00
Remove some dead code
This code could never be executed, because the status variable doesn't get set since the last time it is checked and errors get returned to the caller. This was noticed while looking into the build log provided by http://lists.cairographics.org/archives/cairo/2012-April/022993.html Reported-by: Ryan Schmidt <cairo-2012b@ryandesign.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
494cfd7eb9
commit
138e595c11
1 changed files with 0 additions and 5 deletions
|
|
@ -522,11 +522,6 @@ _cairo_sub_font_add_glyph (cairo_sub_font_t *sub_font,
|
|||
y_advance = scaled_glyph->metrics.y_advance;
|
||||
_cairo_scaled_font_thaw_cache (sub_font->scaled_font);
|
||||
|
||||
if (unlikely (status)) {
|
||||
_cairo_sub_font_glyph_destroy (sub_font_glyph);
|
||||
return status;
|
||||
}
|
||||
|
||||
if (!is_latin && sub_font->num_glyphs_in_current_subset == sub_font->max_glyphs_per_subset)
|
||||
{
|
||||
sub_font->current_subset++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue