Skip to content

Commit

Permalink
chore(cleanup): remove unused UrnUtils function (datahub-project#11897)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker authored Nov 19, 2024
1 parent 1f396e8 commit 8638bf9
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,6 @@ public static DatasetUrn toDatasetUrn(
new DataPlatformUrn(platformName), datasetName, FabricType.valueOf(origin.toUpperCase()));
}

/**
* Convert fabric String to FabricType
*
* @param fabric PROD, CORP, EI, DEV, LIT, PRIME
* @return FabricType
*/
@Nonnull
public static FabricType toFabricType(@Nonnull String fabric) {
switch (fabric.toUpperCase()) {
case "PROD":
return FabricType.PROD;
case "CORP":
return FabricType.CORP;
case "EI":
return FabricType.EI;
case "DEV":
return FabricType.DEV;
default:
throw new IllegalArgumentException("Unsupported Fabric Type: " + fabric);
}
}

public static Urn getUrn(String urnStr) {
try {
return Urn.createFromString(urnStr);
Expand Down

0 comments on commit 8638bf9

Please sign in to comment.