From 46f28c2d01bd405725df6e06d0eeb543bb9092f8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 5 May 2013 11:52:33 +1000 Subject: Since new throws an exception on failure, remove testing of result. --- gtk/PlatGTK.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 8e225d0a5..1227452b8 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -301,11 +301,9 @@ FontID FontCached::FindOrCreate(const FontParameters &fp) { } if (ret == 0) { FontCached *fc = new FontCached(fp); - if (fc) { - fc->next = first; - first = fc; - ret = fc->fid; - } + fc->next = first; + first = fc; + ret = fc->fid; } FontMutexUnlock(); return ret; -- cgit v1.2.3