Skip to content

Commit 8638bf9

Browse files
chore(cleanup): remove unused UrnUtils function (#11897)
1 parent 1f396e8 commit 8638bf9

File tree

1 file changed

+0
-22
lines changed
  • li-utils/src/main/javaPegasus/com/linkedin/common/urn

1 file changed

+0
-22
lines changed

li-utils/src/main/javaPegasus/com/linkedin/common/urn/UrnUtils.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,6 @@ public static DatasetUrn toDatasetUrn(
2727
new DataPlatformUrn(platformName), datasetName, FabricType.valueOf(origin.toUpperCase()));
2828
}
2929

30-
/**
31-
* Convert fabric String to FabricType
32-
*
33-
* @param fabric PROD, CORP, EI, DEV, LIT, PRIME
34-
* @return FabricType
35-
*/
36-
@Nonnull
37-
public static FabricType toFabricType(@Nonnull String fabric) {
38-
switch (fabric.toUpperCase()) {
39-
case "PROD":
40-
return FabricType.PROD;
41-
case "CORP":
42-
return FabricType.CORP;
43-
case "EI":
44-
return FabricType.EI;
45-
case "DEV":
46-
return FabricType.DEV;
47-
default:
48-
throw new IllegalArgumentException("Unsupported Fabric Type: " + fabric);
49-
}
50-
}
51-
5230
public static Urn getUrn(String urnStr) {
5331
try {
5432
return Urn.createFromString(urnStr);

0 commit comments

Comments
 (0)