File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed
app/src/main/java/dev/yokai Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -9,24 +9,6 @@ import kotlinx.coroutines.flow.Flow
99import kotlinx.coroutines.flow.map
1010
1111class ExtensionRepoRepositoryImpl (private val handler : DatabaseHandler ): ExtensionRepoRepository {
12- /*
13- override fun addRepo(url: String): Result<Nothing> {
14- if (!url.matches(repoRegex))
15- return Result.Error("Invalid URL")
16-
17- sourcePreferences.extensionRepos() += url.substringBeforeLast("/index.min.json")
18-
19- return Result.Success()
20- }
21-
22- override fun deleteRepo(repo: String) {
23- sourcePreferences.extensionRepos() -= repo
24- }
25-
26- override fun getRepoFlow() =
27- sourcePreferences.extensionRepos().changes()
28- .map { it.sortedWith(String.CASE_INSENSITIVE_ORDER) }
29- */
3012 override fun subscribeAll (): Flow <List <ExtensionRepo >> =
3113 handler.subscribeToList { extension_reposQueries.findAll(::mapExtensionRepo) }
3214
Original file line number Diff line number Diff line change @@ -34,11 +34,4 @@ interface ExtensionRepoRepository {
3434 }
3535 suspend fun replaceRepository (newRepo : ExtensionRepo )
3636 suspend fun deleteRepository (baseUrl : String )
37- /*
38- fun addRepo(url: String): Result<Nothing>
39-
40- fun deleteRepo(repo: String)
41-
42- fun getRepoFlow(): Flow<List<String>>
43- */
4437}
You can’t perform that action at this time.
0 commit comments