This commit is contained in:
Ricardo Luís Vaz Silva 2023-10-09 14:16:12 -03:00 committed by Christoph Oelckers
parent 0ce4b3e7fb
commit 23c21b23c3

View file

@ -1364,19 +1364,3 @@ DEFINE_ACTION_FUNCTION_NATIVE(DObject, FindFunction, FindFunctionPointer)
ACTION_RETURN_POINTER(FindFunctionPointer(cls, fn.GetIndex()));
}
/*
PFunction * FindMethodPointer(PClass * cls, int fn_name)
{
auto fn = dyn_cast<PFunction>(cls->FindSymbol(ENamedName(fn_name), true));
return (fn && fn->GetImplicitArgs() == 1) ? fn : nullptr;
}
DEFINE_ACTION_FUNCTION_NATIVE(DObject, FindMethod, FindMethodPointer)
{
PARAM_PROLOGUE;
PARAM_CLASS(cls, DObject);
PARAM_NAME(fn);
ACTION_RETURN_POINTER(FindMethodPointer(cls, fn.GetIndex()));
}
*/