From d27a7cd84b571fc77a677b67f248dbde2aedc1eb Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 9 Jun 2019 10:27:21 +0300 Subject: [PATCH] - removed explicit self null tests from dynarray native wrappers They are useless since d3e6ed3c9b in which generation of implicit self null pointer check was added to JIT --- src/scripting/backend/dynarrays.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/scripting/backend/dynarrays.cpp b/src/scripting/backend/dynarrays.cpp index d01a4557b95..b95e02f4d09 100644 --- a/src/scripting/backend/dynarrays.cpp +++ b/src/scripting/backend/dynarrays.cpp @@ -783,7 +783,6 @@ DEFINE_ACTION_FUNCTION_NATIVE(FDynArray_Obj, Find, ArrayFindPush(obj); } @@ -812,7 +811,6 @@ DEFINE_ACTION_FUNCTION_NATIVE(FDynArray_Obj, Delete, ArrayDelete) void ObjArrayInsert(FDynArray_Obj *self,int index, DObject *obj) { - if (self == nullptr) NullParam("\"self\""); GC::WriteBarrier(obj); self->Insert(index, obj); }