Przeglądaj źródła

GDExtension: Remove redundant method bind hash check

David Snopek 1 rok temu
rodzic
commit
0967fe6217
1 zmienionych plików z 0 dodań i 4 usunięć
  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;
 }