Skip to content

Commit

Permalink
[mock] remove override of AbstractExternalResource
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlatemp committed Sep 10, 2022
1 parent 2db9804 commit 657b414
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

package net.mamoe.mirai.mock.internal.serverfs

import io.ktor.utils.io.core.*
import io.ktor.utils.io.streams.*
import net.mamoe.mirai.mock.resserver.MockServerFileDisk
import net.mamoe.mirai.mock.resserver.MockServerFileSystem
import net.mamoe.mirai.mock.resserver.MockServerRemoteFile
Expand All @@ -25,7 +23,6 @@ import java.nio.file.attribute.FileTime
import java.util.*
import java.util.concurrent.ConcurrentLinkedDeque
import kotlin.io.path.*
import kotlin.io.use
import net.mamoe.mirai.internal.utils.FileSystem as MiraiFileSystem

private fun allocateNewPath(base: Path): Path {
Expand Down Expand Up @@ -298,11 +295,6 @@ internal class MockServerFileImpl(

override val size: Long
get() = toPath.fileSize()

@MiraiExperimentalApi
override fun input(): Input {
return inputStream0().asInput()
}
}
}

Expand Down

0 comments on commit 657b414

Please sign in to comment.