From 4e4f45e65c6cfca497972e996a57c2503e3bf4ce Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Wed, 31 May 2017 21:21:51 +0200 Subject: Remove silly code ;) (bzr r15714) --- src/sp-clippath.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/sp-clippath.cpp b/src/sp-clippath.cpp index b26a2cbf2..1829837d8 100644 --- a/src/sp-clippath.cpp +++ b/src/sp-clippath.cpp @@ -227,19 +227,13 @@ void SPClipPath::hide(unsigned int key) { SP_ITEM(&child)->invoke_hide(key); } } - bool no_clippathview = true; for (SPClipPathView *v = display; v != NULL; v = v->next) { - no_clippathview = false; if (v->key == key) { /* We simply unref and let item to manage this in handler */ display = sp_clippath_view_list_remove(display, v); return; } } - if (no_clippathview) { - return; - } - g_assert_not_reached(); } void SPClipPath::setBBox(unsigned int key, Geom::OptRect const &bbox) { -- cgit v1.2.3