From 70ce4d45f452aa22d7e6fad3184b296490786b31 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 5 Sep 2022 14:20:11 +0200 Subject: [PATCH] Remove unused CRCinArmoredInputStreamWrapper.possiblyWrap() --- .../util/CRCingArmoredInputStreamWrapper.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/util/CRCingArmoredInputStreamWrapper.java b/pgpainless-core/src/main/java/org/pgpainless/util/CRCingArmoredInputStreamWrapper.java index ff97013a..2c43339b 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/util/CRCingArmoredInputStreamWrapper.java +++ b/pgpainless-core/src/main/java/org/pgpainless/util/CRCingArmoredInputStreamWrapper.java @@ -27,18 +27,6 @@ public class CRCingArmoredInputStreamWrapper extends ArmoredInputStream { this.inputStream = inputStream; } - public static InputStream possiblyWrap(InputStream inputStream) throws IOException { - if (inputStream instanceof CRCingArmoredInputStreamWrapper) { - return inputStream; - } - - if (inputStream instanceof ArmoredInputStream) { - return new CRCingArmoredInputStreamWrapper((ArmoredInputStream) inputStream); - } - - return inputStream; - } - @Override public boolean isClearText() { return inputStream.isClearText();