mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-18 02:12:06 +01:00
Remove unused CRCinArmoredInputStreamWrapper.possiblyWrap()
This commit is contained in:
parent
c80e0dd0d5
commit
70ce4d45f4
1 changed files with 0 additions and 12 deletions
|
@ -27,18 +27,6 @@ public class CRCingArmoredInputStreamWrapper extends ArmoredInputStream {
|
||||||
this.inputStream = inputStream;
|
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
|
@Override
|
||||||
public boolean isClearText() {
|
public boolean isClearText() {
|
||||||
return inputStream.isClearText();
|
return inputStream.isClearText();
|
||||||
|
|
Loading…
Reference in a new issue