Skip to content

Commit 2e7fdec

Browse files
committed
Remove unused method
1 parent d6e27b7 commit 2e7fdec

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/main/java/com/github/packageurl/PackageURL.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -583,22 +583,6 @@ private String canonicalize(boolean coordinatesOnly) {
583583
return purl.toString();
584584
}
585585

586-
/**
587-
* Some purl types may have specific constraints. This method attempts to verify them.
588-
* @param type the purl type
589-
* @param namespace the purl namespace
590-
* @throws MalformedPackageURLException if constraints are not met
591-
*/
592-
private static void verifyTypeConstraints(String type, @Nullable String namespace, @Nullable String name)
593-
throws MalformedPackageURLException {
594-
if (StandardTypes.MAVEN.equals(type)) {
595-
if (isEmpty(namespace) || isEmpty(name)) {
596-
throw new MalformedPackageURLException(
597-
"The PackageURL specified is invalid. Maven requires both a namespace and name.");
598-
}
599-
}
600-
}
601-
602586
private static @Nullable Map<String, String> parseQualifiers(final @Nullable Map<String, String> qualifiers)
603587
throws MalformedPackageURLException {
604588
if (qualifiers == null || qualifiers.isEmpty()) {

0 commit comments

Comments
 (0)