File tree Expand file tree Collapse file tree 5 files changed +0
-39
lines changed
aidl/me/zhanghai/android/files/provider/remote
java/me/zhanghai/android/files/provider Expand file tree Collapse file tree 5 files changed +0
-39
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,4 @@ interface IRemoteFileService {
16
16
IRemotePosixFileAttributeView getRemotePosixFileAttributeViewInterface (
17
17
in ParcelableObject attributeView
18
18
);
19
-
20
- void setArchivePasswords (in ParcelableObject fileSystem , in List <String > passwords );
21
-
22
- void refreshArchiveFileSystem (in ParcelableObject fileSystem );
23
19
}
Original file line number Diff line number Diff line change @@ -119,15 +119,6 @@ internal class ArchiveFileSystem(
119
119
}
120
120
}
121
121
122
- fun setPasswords (passwords : List <String >) {
123
- synchronized(lock) {
124
- if (! isOpen) {
125
- throw ClosedFileSystemException ()
126
- }
127
- this .passwords = passwords
128
- }
129
- }
130
-
131
122
fun refresh () {
132
123
synchronized(lock) {
133
124
if (! isOpen) {
Original file line number Diff line number Diff line change @@ -13,11 +13,6 @@ fun Path.archiveAddPassword(password: String) {
13
13
fileSystem.addPassword(password)
14
14
}
15
15
16
- fun Path.archiveSetPasswords (passwords : List <String >) {
17
- this as ? ArchivePath ? : throw ProviderMismatchException (toString())
18
- fileSystem.setPasswords(passwords)
19
- }
20
-
21
16
val Path .archiveFile: Path
22
17
get() {
23
18
this as ? ArchivePath ? : throw ProviderMismatchException (toString())
Original file line number Diff line number Diff line change @@ -29,14 +29,4 @@ abstract class RemoteFileService(private val remoteInterface: RemoteInterface<IR
29
29
remoteInterface.get().call {
30
30
getRemotePosixFileAttributeViewInterface(attributeView.toParcelable())
31
31
}
32
-
33
- @Throws(RemoteFileSystemException ::class )
34
- fun setArchivePasswords (fileSystem : FileSystem , passwords : List <String >) {
35
- remoteInterface.get().call { setArchivePasswords(fileSystem.toParcelable(), passwords) }
36
- }
37
-
38
- @Throws(RemoteFileSystemException ::class )
39
- fun refreshArchiveFileSystem (fileSystem : FileSystem ) {
40
- remoteInterface.get().call { refreshArchiveFileSystem(fileSystem.toParcelable()) }
41
- }
42
32
}
Original file line number Diff line number Diff line change 5
5
6
6
package me.zhanghai.android.files.provider.remote
7
7
8
- import java8.nio.file.FileSystem
9
8
import me.zhanghai.android.files.provider.FileSystemProviders
10
- import me.zhanghai.android.files.provider.archive.archiveRefresh
11
- import me.zhanghai.android.files.provider.archive.archiveSetPasswords
12
9
13
10
open class RemoteFileServiceInterface : IRemoteFileService .Stub () {
14
11
override fun getRemoteFileSystemProviderInterface (scheme : String ): IRemoteFileSystemProvider =
@@ -25,12 +22,4 @@ open class RemoteFileServiceInterface : IRemoteFileService.Stub() {
25
22
attributeView : ParcelableObject
26
23
): IRemotePosixFileAttributeView =
27
24
RemotePosixFileAttributeViewInterface (attributeView.value())
28
-
29
- override fun setArchivePasswords (fileSystem : ParcelableObject , passwords : List <String >) {
30
- fileSystem.value<FileSystem >().getPath(" " ).archiveSetPasswords(passwords)
31
- }
32
-
33
- override fun refreshArchiveFileSystem (fileSystem : ParcelableObject ) {
34
- fileSystem.value<FileSystem >().getPath(" " ).archiveRefresh()
35
- }
36
25
}
You can’t perform that action at this time.
0 commit comments