Skip to content

Commit c1b2be1

Browse files
committed
remove unused fcn
1 parent 8455033 commit c1b2be1

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

packages/db/src/impl/pouch/courseDB.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -121,23 +121,6 @@ export class CourseDB implements StudyContentSource, CourseDBInterface {
121121
};
122122
}
123123

124-
public async getStudySession(cardLimit: number = 99) {
125-
// cardLimit = cardLimit ? cardLimit : 999;
126-
const u = await this._getCurrentUser();
127-
const userCrsdoc = await u.getCourseRegDoc(this.id);
128-
const activeCards = await u.getActiveCards();
129-
130-
// console.log()
131-
const newCards = (await this.getCardsByELO(EloToNumber(userCrsdoc!.elo), cardLimit)).filter(
132-
(card) => {
133-
return activeCards.indexOf(card) === -1;
134-
}
135-
);
136-
137-
// get scheduled reviews ... .... .....
138-
return newCards;
139-
}
140-
141124
public async getInexperiencedCards(limit: number = 2) {
142125
return (
143126
await this.db.query('cardsByInexperience', {

0 commit comments

Comments
 (0)