[db] remove deprecated insertEmptyRepo() method

This commit is contained in:
Torsten Grote
2023-09-28 15:44:56 +02:00
parent 264d9de9de
commit 10ef3ab055

View File

@@ -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),