Sfoglia il codice sorgente

GDExtension: Remove redundant method bind hash check

David Snopek 1 anno fa
parent
commit
0967fe6217
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  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;
 }