浏览代码

GDExtension: Remove redundant method bind hash check

David Snopek 2 年之前
父节点
当前提交
0967fe6217
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      core/extension/gdextension_interface.cpp

+ 0 - 4
core/extension/gdextension_interface.cpp

@@ -1323,10 +1323,6 @@ static GDExtensionMethodBindPtr gdextension_classdb_get_method_bind(GDExtensionC
 		return nullptr;
 	}
 	ERR_FAIL_NULL_V(mb, nullptr);
-	if (mb->get_hash() != p_hash) {
-		ERR_PRINT("Hash mismatch for method '" + classname + "." + methodname + "'.");
-		return nullptr;
-	}
 	return (GDExtensionMethodBindPtr)mb;
 }