0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00

docs: removeNotes

This commit is contained in:
David Allison 2024-06-19 15:59:37 +01:00 committed by lukstbit
parent 6c39ce2858
commit dac0c2d6f1

View File

@ -569,7 +569,9 @@ class Collection(
}
fun removeNotes(nids: Iterable<NoteId> = listOf(), cids: Iterable<CardId> = listOf()): OpChangesWithCount {
return backend.removeNotes(noteIds = nids, cardIds = cids)
return backend.removeNotes(noteIds = nids, cardIds = cids).also {
Timber.d("removeNotes: %d changes", it.count)
}
}
fun removeCardsAndOrphanedNotes(cardIds: Iterable<Long>) {