Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Nov 19, 2024
1 parent ed287b4 commit a4722f4
Showing 1 changed file with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package eu.dissco.core.translator.terms.utils;

import static eu.dissco.core.translator.schema.Identifier.DctermsType.ARK;
import static eu.dissco.core.translator.schema.Identifier.DctermsType.DOI;
import static eu.dissco.core.translator.schema.Identifier.DctermsType.HANDLE;
import static eu.dissco.core.translator.schema.Identifier.DctermsType.PURL;
import static eu.dissco.core.translator.schema.Identifier.DctermsType.URL;
import static eu.dissco.core.translator.schema.Identifier.DctermsType.*;
import static eu.dissco.core.translator.schema.Identifier.OdsGupriLevel.GLOBALLY_UNIQUE_STABLE;
import static eu.dissco.core.translator.schema.Identifier.OdsGupriLevel.GLOBALLY_UNIQUE_STABLE_PERSISTENT_RESOLVABLE;
import static eu.dissco.core.translator.schema.Identifier.OdsGupriLevel.GLOBALLY_UNIQUE_STABLE_PERSISTENT_RESOLVABLE_FDO_COMPLIANT;
Expand All @@ -17,7 +13,6 @@
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.regex.Pattern;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.tuple.Triple;
Expand Down Expand Up @@ -49,7 +44,7 @@ private static Map<List<Pattern>, Triple<DctermsType, String, OdsGupriLevel>> pa
Triple.of(URL, "URL", GLOBALLY_UNIQUE_STABLE_PERSISTENT_RESOLVABLE));
linkedMap.put(List.of(compile(
"(uuid:)*[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}")),
Triple.of(DctermsType.UUID, "UUID", GLOBALLY_UNIQUE_STABLE));
Triple.of(UUID, "UUID", GLOBALLY_UNIQUE_STABLE));
return linkedMap;
}

Expand Down Expand Up @@ -97,14 +92,4 @@ private static String getDcTermsTitle(String identifierName, String defaultValue
return defaultValue;
}
}

private static boolean isValidUUID(String identifierString) {
try {
UUID.fromString(identifierString);
return true;
} catch (IllegalArgumentException e) {
log.debug("Identifier {} is not a valid UUID", identifierString);
return false;
}
}
}

0 comments on commit a4722f4

Please sign in to comment.