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

NF: same for getDeckName (never called actually)

This commit is contained in:
Arthur Milchior 2020-10-28 20:44:35 +01:00 committed by Mike Hardy
parent 3e4824db5f
commit 5e7768fe1d

View File

@ -596,16 +596,9 @@ public final class AddContentApi {
* @param did ID of deck
* @return the name of the deck, or null if no deck was found
*/
public String getDeckName(Long did) {
public String getDeckName(long did) {
Map<Long, String> deckList = getDeckList();
if (did != null && did >= 0 && deckList != null) {
for (Map.Entry<Long, String> entry : deckList.entrySet()) {
if (entry.getKey().equals(did)) {
return entry.getValue();
}
}
}
return null;
return deckList.get(did);
}