mirror of
https://github.com/ankitects/anki.git
synced 2026-01-11 04:53:55 -05:00
Remove unused pop_intraday_learning method
This commit is contained in:
parent
9cf59e4a5d
commit
d9e68075ac
1 changed files with 0 additions and 10 deletions
|
|
@ -116,16 +116,6 @@ impl CardQueues {
|
||||||
self.main.is_empty()
|
self.main.is_empty()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Remove the head of the intraday learning queue, and update counts.
|
|
||||||
pub(super) fn pop_intraday_learning(&mut self) -> Option<LearningQueueEntry> {
|
|
||||||
self.intraday_learning.pop_front().inspect(|_head| {
|
|
||||||
// FIXME:
|
|
||||||
// under normal circumstances this should not go below 0, but currently
|
|
||||||
// the Python unit tests answer learning cards before they're due
|
|
||||||
self.counts.learning = self.counts.learning.saturating_sub(1);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Add an undone entry to the top of the intraday learning queue.
|
/// Add an undone entry to the top of the intraday learning queue.
|
||||||
pub(super) fn push_intraday_learning(&mut self, entry: LearningQueueEntry) {
|
pub(super) fn push_intraday_learning(&mut self, entry: LearningQueueEntry) {
|
||||||
self.intraday_learning.push_front(entry);
|
self.intraday_learning.push_front(entry);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue