8366978: dead code in SunCertPathBuilder

Reviewed-by: mullan, hchao
This commit is contained in:
Koushik Thirupattur 2025-09-16 16:24:19 +00:00 committed by Sean Mullan
parent 58007c0bcc
commit 15d42c6d77

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -637,18 +637,4 @@ public final class SunCertPathBuilder extends CertPathBuilderSpi {
return (nextAltNameExt == null);
}
}
/**
* Returns true if trust anchor certificate matches specified
* certificate constraints.
*/
private static boolean anchorIsTarget(TrustAnchor anchor,
CertSelector sel)
{
X509Certificate anchorCert = anchor.getTrustedCert();
if (anchorCert != null) {
return sel.match(anchorCert);
}
return false;
}
}