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. --- win32/PlatWin.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index b73f0fee7..c746bfcb2 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -407,11 +407,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; } ::LeaveCriticalSection(&crPlatformLock); return ret; -- cgit v1.2.3