diff options
author | nyamatongwe <devnull@localhost> | 2013-05-05 11:52:33 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-05 11:52:33 +1000 |
commit | 46f28c2d01bd405725df6e06d0eeb543bb9092f8 (patch) | |
tree | 623c7c1d96743351a979f0101943474730545ecb /gtk | |
parent | 1cc7b583576574d94e038692608f73df96964485 (diff) | |
download | scintilla-mirror-46f28c2d01bd405725df6e06d0eeb543bb9092f8.tar.gz |
Since new throws an exception on failure, remove testing of result.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/PlatGTK.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
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; |