Remove redundant code

This commit is contained in:
Wojtek Figat
2021-08-19 14:01:54 +02:00
parent a1bf4819cb
commit d30e8c4c70

View File

@@ -560,10 +560,6 @@ public:
{
if (!id->IsValid())
return nullptr;
#if PLATFORM_LINUX
// Cannot enter GC unsafe region if the thread is not attached
MCore::AttachThread();
#endif
auto klass = MUtils::GetClass(type);
ScriptingObject* obj = Scripting::TryFindObject(*id);
if (!obj)