From 7faa6c580ab1102faf43c1a9e68fd12ca6f49a1b Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 29 Aug 2022 10:38:44 +0200 Subject: [PATCH] Remove deprecated ArmorUtils.createArmoredOutputStream() --- .../java/org/pgpainless/util/ArmorUtils.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/util/ArmorUtils.java b/pgpainless-core/src/main/java/org/pgpainless/util/ArmorUtils.java index 48bdc0cc..160d8d0a 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/util/ArmorUtils.java +++ b/pgpainless-core/src/main/java/org/pgpainless/util/ArmorUtils.java @@ -267,28 +267,6 @@ public final class ArmorUtils { return armoredOutputStream; } - /** - * Return an {@link ArmoredOutputStream} prepared with headers for the given key ring, which wraps the given - * {@link OutputStream}. - * - * The armored output stream can be used to encode the key ring by calling {@link PGPKeyRing#encode(OutputStream)} - * with the armored output stream as an argument. - * - * @param keyRing key ring - * @param outputStream wrapped output stream - * @return armored output stream - * - * @deprecated use {@link #toAsciiArmoredStream(PGPKeyRing, OutputStream)} instead - * - * TODO: Remove in 1.2.X - */ - @Deprecated - @Nonnull - public static ArmoredOutputStream createArmoredOutputStreamFor(@Nonnull PGPKeyRing keyRing, - @Nonnull OutputStream outputStream) { - return toAsciiArmoredStream(keyRing, outputStream); - } - /** * Generate a header map for ASCII armor from the given {@link PGPKeyRing}. *