Skip to content
Permalink
Browse files

- removed explicit self null tests from dynarray native wrappers

They are useless since d3e6ed3 in which generation of implicit self null pointer check was added to JIT
  • Loading branch information...
alexey-lysiuk authored and madame-rachelle committed Jun 9, 2019
1 parent 360d976 commit ca90516238b01e5ceb768ff7da55dcf60b2597c7
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/scripting/backend/dynarrays.cpp
@@ -783,7 +783,6 @@ DEFINE_ACTION_FUNCTION_NATIVE(FDynArray_Obj, Find, ArrayFind<FDynArray_Obj COMMA

int ObjArrayPush(FDynArray_Obj *self, DObject *obj)
{
if (self == nullptr) NullParam("\"self\"");
GC::WriteBarrier(obj);
return self->Push(obj);
}
@@ -812,7 +811,6 @@ DEFINE_ACTION_FUNCTION_NATIVE(FDynArray_Obj, Delete, ArrayDelete<FDynArray_Obj>)

void ObjArrayInsert(FDynArray_Obj *self,int index, DObject *obj)
{
if (self == nullptr) NullParam("\"self\"");
GC::WriteBarrier(obj);
self->Insert(index, obj);
}

0 comments on commit ca90516

Please sign in to comment.
You can’t perform that action at this time.