1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-12 23:31:08 +01:00

Remove unused CRCingArmoredInputStreamWrapper class

This commit is contained in:
Paul Schaub 2023-11-13 14:09:42 +01:00
parent 620c1fc96a
commit 3bb25a62a2
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 7 additions and 184 deletions

View file

@ -29,16 +29,14 @@ class ArmoredInputStreamFactory {
@Throws(IOException::class)
fun get(inputStream: InputStream, options: ConsumerOptions? = null): ArmoredInputStream {
return when (inputStream) {
is CRCingArmoredInputStreamWrapper -> inputStream
is ArmoredInputStream -> CRCingArmoredInputStreamWrapper(inputStream)
is ArmoredInputStream -> inputStream
else ->
CRCingArmoredInputStreamWrapper(
ArmoredInputStream.builder()
.apply {
setParseForHeaders(true)
options?.let { setIgnoreCRC(it.isDisableAsciiArmorCRC) }
}
.build(inputStream))
ArmoredInputStream.builder()
.apply {
setParseForHeaders(true)
options?.let { setIgnoreCRC(it.isDisableAsciiArmorCRC) }
}
.build(inputStream)
}
}
}