diff --git a/internal/location/schema.go b/internal/location/schema.go
index <HASH>..<HASH> 100644
--- a/internal/location/schema.go
+++ b/internal/location/schema.go
@@ -10,13 +10,6 @@ func Schema() *pluginsdk.Schema {
 	return commonschema.Location()
 }
 
-func HashCode(location interface{}) int {
-	// NOTE: this is intentionally not present upstream as the only usage is deprecated
-	// and so this can be removed in 3.0
-	loc := location.(string)
-	return pluginsdk.HashString(Normalize(loc))
-}
-
 func StateFunc(input interface{}) string {
 	return location.StateFunc(input)
 }
diff --git a/internal/services/containers/container_registry_resource.go b/internal/services/containers/container_registry_resource.go
index <HASH>..<HASH> 100644
--- a/internal/services/containers/container_registry_resource.go
+++ b/internal/services/containers/container_registry_resource.go
@@ -1132,7 +1132,9 @@ func resourceContainerRegistrySchema() map[string]*pluginsdk.Schema {
 				Type:         pluginsdk.TypeString,
 				ValidateFunc: validation.StringIsNotEmpty,
 			},
-			Set: location.HashCode,
+			Set: func(input interface{}) int {
+				return pluginsdk.HashString(location.Normalize(input.(string)))
+			},
 		}
 	}
refactor: removing the old `HashCode` function