Skip to content

Commit

Permalink
[unity]去掉多余的api
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Oct 23, 2024
1 parent 19f1802 commit 2c3faf8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ intptr_t GetFieldInfoPointer(Il2CppReflectionField* field)
return (intptr_t)field->field;
}

intptr_t GetObjectPointer(Il2CppObject *obj)
{
return (intptr_t)obj;
}

intptr_t GetTypeId(Il2CppReflectionType *type)
{
return (intptr_t)il2cpp_codegen_class_from_type(type->type);
Expand Down Expand Up @@ -1980,7 +1975,6 @@ void InitialPuerts(pesapi_func_ptr* func_array)
{
InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetMethodPointer(System.Reflection.MethodBase)", (Il2CppMethodPointer)puerts::GetMethodPointer);
InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetMethodInfoPointer(System.Reflection.MethodBase)", (Il2CppMethodPointer)puerts::GetMethodInfoPointer);
InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetObjectPointer(System.Object)", (Il2CppMethodPointer)puerts::GetObjectPointer);
InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetTypeId(System.Type)", (Il2CppMethodPointer)puerts::GetTypeId);
InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetFieldOffset(System.Reflection.FieldInfo,System.Boolean)", (Il2CppMethodPointer)puerts::GetFieldOffset);
InternalCalls::Add("PuertsIl2cpp.NativeAPI::GetFieldInfoPointer(System.Reflection.FieldInfo)", (Il2CppMethodPointer)puerts::GetFieldInfoPointer);
Expand Down
6 changes: 0 additions & 6 deletions unity/Assets/core/upm/Runtime/Src/IL2Cpp/Native/NativeAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,6 @@ public static IntPtr GetFieldInfoPointer(FieldInfo fieldInfo)
throw new NotImplementedException();
}

[MethodImpl(MethodImplOptions.InternalCall)]
public static IntPtr GetObjectPointer(Object obj)
{
throw new NotImplementedException();
}

[MethodImpl(MethodImplOptions.InternalCall)]
public static IntPtr GetTypeId(Type type)
{
Expand Down

0 comments on commit 2c3faf8

Please sign in to comment.