diff --git a/app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteFileService.aidl b/app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteFileService.aidl index 5d9dfba72..e3e6f47b2 100644 --- a/app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteFileService.aidl +++ b/app/src/main/aidl/me/zhanghai/android/files/provider/remote/IRemoteFileService.aidl @@ -16,8 +16,4 @@ interface IRemoteFileService { IRemotePosixFileAttributeView getRemotePosixFileAttributeViewInterface( in ParcelableObject attributeView ); - - void setArchivePasswords(in ParcelableObject fileSystem, in List passwords); - - void refreshArchiveFileSystem(in ParcelableObject fileSystem); } diff --git a/app/src/main/java/me/zhanghai/android/files/provider/archive/ArchiveFileSystem.kt b/app/src/main/java/me/zhanghai/android/files/provider/archive/ArchiveFileSystem.kt index ef4b0dc22..c43903828 100644 --- a/app/src/main/java/me/zhanghai/android/files/provider/archive/ArchiveFileSystem.kt +++ b/app/src/main/java/me/zhanghai/android/files/provider/archive/ArchiveFileSystem.kt @@ -119,15 +119,6 @@ internal class ArchiveFileSystem( } } - fun setPasswords(passwords: List) { - synchronized(lock) { - if (!isOpen) { - throw ClosedFileSystemException() - } - this.passwords = passwords - } - } - fun refresh() { synchronized(lock) { if (!isOpen) { diff --git a/app/src/main/java/me/zhanghai/android/files/provider/archive/PathArchiveExtensions.kt b/app/src/main/java/me/zhanghai/android/files/provider/archive/PathArchiveExtensions.kt index 6c765e822..1376d1ee2 100644 --- a/app/src/main/java/me/zhanghai/android/files/provider/archive/PathArchiveExtensions.kt +++ b/app/src/main/java/me/zhanghai/android/files/provider/archive/PathArchiveExtensions.kt @@ -13,11 +13,6 @@ fun Path.archiveAddPassword(password: String) { fileSystem.addPassword(password) } -fun Path.archiveSetPasswords(passwords: List) { - this as? ArchivePath ?: throw ProviderMismatchException(toString()) - fileSystem.setPasswords(passwords) -} - val Path.archiveFile: Path get() { this as? ArchivePath ?: throw ProviderMismatchException(toString()) diff --git a/app/src/main/java/me/zhanghai/android/files/provider/remote/RemoteFileService.kt b/app/src/main/java/me/zhanghai/android/files/provider/remote/RemoteFileService.kt index 63138906a..8eb5ab4b5 100644 --- a/app/src/main/java/me/zhanghai/android/files/provider/remote/RemoteFileService.kt +++ b/app/src/main/java/me/zhanghai/android/files/provider/remote/RemoteFileService.kt @@ -29,14 +29,4 @@ abstract class RemoteFileService(private val remoteInterface: RemoteInterface) { - remoteInterface.get().call { setArchivePasswords(fileSystem.toParcelable(), passwords) } - } - - @Throws(RemoteFileSystemException::class) - fun refreshArchiveFileSystem(fileSystem: FileSystem) { - remoteInterface.get().call { refreshArchiveFileSystem(fileSystem.toParcelable()) } - } } diff --git a/app/src/main/java/me/zhanghai/android/files/provider/remote/RemoteFileServiceInterface.kt b/app/src/main/java/me/zhanghai/android/files/provider/remote/RemoteFileServiceInterface.kt index c6831d2eb..ec2410380 100644 --- a/app/src/main/java/me/zhanghai/android/files/provider/remote/RemoteFileServiceInterface.kt +++ b/app/src/main/java/me/zhanghai/android/files/provider/remote/RemoteFileServiceInterface.kt @@ -5,10 +5,7 @@ package me.zhanghai.android.files.provider.remote -import java8.nio.file.FileSystem import me.zhanghai.android.files.provider.FileSystemProviders -import me.zhanghai.android.files.provider.archive.archiveRefresh -import me.zhanghai.android.files.provider.archive.archiveSetPasswords open class RemoteFileServiceInterface : IRemoteFileService.Stub() { override fun getRemoteFileSystemProviderInterface(scheme: String): IRemoteFileSystemProvider = @@ -25,12 +22,4 @@ open class RemoteFileServiceInterface : IRemoteFileService.Stub() { attributeView: ParcelableObject ): IRemotePosixFileAttributeView = RemotePosixFileAttributeViewInterface(attributeView.value()) - - override fun setArchivePasswords(fileSystem: ParcelableObject, passwords: List) { - fileSystem.value().getPath("").archiveSetPasswords(passwords) - } - - override fun refreshArchiveFileSystem(fileSystem: ParcelableObject) { - fileSystem.value().getPath("").archiveRefresh() - } }