[db] remove deprecated insertEmptyRepo() method

This commit is contained in:
Torsten Grote committed 2023-10-20 09:26:15 -03:00
1 parent 264d9de9de
commit 10ef3ab055
1 file changed
+3 -15
@@ -33,18 +33,6 @@ public interface RepositoryDao {
*/
public fun insert(newRepository: NewRepository): Long
/**
* Inserts an empty [Repository] for an initial update.
*
* @return the [Repository.repoId] of the inserted repo.
*/
@Deprecated("Use insert instead")
public fun insertEmptyRepo(
address: String,
username: String? = null,
password: String? = null,
): Long
/**
* Returns the repository with the given [repoId] or null, if none was found with that ID.
*/
@@ -177,10 +165,10 @@ internal interface RepositoryDaoInt : RepositoryDao {
@Transaction
@Deprecated("Use insert instead")
override fun insertEmptyRepo(
fun insertEmptyRepo(
address: String,
username: String?,
password: String?,
username: String? = null,
password: String? = null,
): Long {
val repo = CoreRepository(
name = mapOf("en-US" to address),