Skip to content

Commit

Permalink
libanki getDeckConfigsForUpdate()
Browse files Browse the repository at this point in the history
  • Loading branch information
RobozinhoD committed Nov 14, 2024
1 parent 343503e commit 1dc0ef3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions AnkiDroid/src/main/java/com/ichi2/libanki/Decks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -314,27 +314,28 @@ class Decks(private val col: Collection) {
*************************************************************
*/

@RustCleanup("implement and make public")
@Suppress("unused", "unused_parameter")
/**
* Rename one or more source decks that were dropped on [newParent].
*
* If [newParent] is `0`, decks will be placed at the top level.
*/
private fun reparent(deckIds: List<DeckId>, newParent: DeckId): OpChangesWithCount {
TODO()
@Suppress("unused")
fun reparent(deckIds: List<DeckId>, newParent: DeckId): OpChangesWithCount {
return col.backend.reparentDecks(
deckIds = deckIds,
newParent = newParent
)
}

/*
* Deck configurations
*************************************************************
*/

@RustCleanup("implement and make public")
@LibAnkiAlias("get_deck_configs_for_update")
@Suppress("unused", "unused_parameter")
private fun getDeckConfigsForUpdate(deckId: DeckId): DeckConfigsForUpdate {
TODO()
@Suppress("unused")
fun getDeckConfigsForUpdate(deckId: DeckId): DeckConfigsForUpdate {
return col.backend.getDeckConfigsForUpdate(deckId)
}

@RustCleanup("implement and make public")
Expand Down

0 comments on commit 1dc0ef3

Please sign in to comment.