From aed19e517976e761cc3a2d0bee822c2e6afdb80a Mon Sep 17 00:00:00 2001 From: narzoul Date: Sun, 6 Mar 2016 16:47:02 +0100 Subject: [PATCH] Removed dead code The oject type of DCs created by DirectDraw is OBJ_MEMDC, so getDc would have already returned nullptr earlier. --- DDrawCompat/CompatGdiDc.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/DDrawCompat/CompatGdiDc.cpp b/DDrawCompat/CompatGdiDc.cpp index d606e8c..9b867e5 100644 --- a/DDrawCompat/CompatGdiDc.cpp +++ b/DDrawCompat/CompatGdiDc.cpp @@ -118,12 +118,6 @@ namespace CompatGdiDc CompatGdi::GdiScopedThreadLock gdiLock; - if (g_origDcToCompatDc.end() != std::find_if(g_origDcToCompatDc.begin(), g_origDcToCompatDc.end(), - [=](const CompatDcMap::value_type& compatDc) { return compatDc.second.dc == origDc; })) - { - return nullptr; - } - auto it = g_origDcToCompatDc.find(origDc); if (it != g_origDcToCompatDc.end()) {