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:
parent
620c1fc96a
commit
3bb25a62a2
3 changed files with 7 additions and 184 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue