1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Removed dead code

The oject type of DCs created by DirectDraw is OBJ_MEMDC, so getDc would have
already returned nullptr earlier.
This commit is contained in:
narzoul 2016-03-06 16:47:02 +01:00
parent c0fd60207a
commit aed19e5179

View File

@ -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())
{