From 82ff62b4e65f00e3dd63784ace3f1e38b86fe49d Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 20 Jun 2022 17:58:27 +0200 Subject: [PATCH] Remove unused NotYetImplementedException --- .../exception/NotYetImplementedException.java | 12 ------------ .../java/org/pgpainless/key/util/KeyRingUtils.java | 3 --- 2 files changed, 15 deletions(-) delete mode 100644 pgpainless-core/src/main/java/org/pgpainless/exception/NotYetImplementedException.java diff --git a/pgpainless-core/src/main/java/org/pgpainless/exception/NotYetImplementedException.java b/pgpainless-core/src/main/java/org/pgpainless/exception/NotYetImplementedException.java deleted file mode 100644 index 72f9b569..00000000 --- a/pgpainless-core/src/main/java/org/pgpainless/exception/NotYetImplementedException.java +++ /dev/null @@ -1,12 +0,0 @@ -// SPDX-FileCopyrightText: 2021 Paul Schaub -// -// SPDX-License-Identifier: Apache-2.0 - -package org.pgpainless.exception; - -/** - * Method that gets thrown if the user requests some functionality which is not yet implemented. - */ -public class NotYetImplementedException extends RuntimeException { - -} diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/util/KeyRingUtils.java b/pgpainless-core/src/main/java/org/pgpainless/key/util/KeyRingUtils.java index 8306db34..21c5b575 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/util/KeyRingUtils.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/util/KeyRingUtils.java @@ -26,7 +26,6 @@ import org.bouncycastle.openpgp.PGPSecretKeyRingCollection; import org.bouncycastle.openpgp.PGPSignature; import org.bouncycastle.openpgp.PGPUserAttributeSubpacketVector; import org.pgpainless.PGPainless; -import org.pgpainless.exception.NotYetImplementedException; import org.pgpainless.implementation.ImplementationFactory; import org.pgpainless.key.protection.SecretKeyRingProtector; import org.pgpainless.key.protection.UnlockSecretKey; @@ -354,8 +353,6 @@ public final class KeyRingUtils { /** * Inject a {@link PGPPublicKey} into the given key ring. * - * Note: Right now this method is broken and will throw a {@link NotYetImplementedException}. - * * @param keyRing key ring * @param publicKey public key * @param either {@link PGPPublicKeyRing} or {@link PGPSecretKeyRing}