remove unnecessary code

This commit is contained in:
Abhinav 2023-02-10 17:47:00 +05:30
parent bf3a232471
commit e9312ff139

View file

@ -101,40 +101,6 @@ class TextService {
}))
.sort((a, b) => b.files.length - a.files.length);
}
// async syncThingClassesIndex(syncContext: MLSyncContext) {
// const filesVersion = await mlIDbStorage.getIndexVersion('files');
// addLogLine(
// 'thingClasses',
// await mlIDbStorage.getIndexVersion('thingClasses')
// );
// if (
// filesVersion <= (await mlIDbStorage.getIndexVersion('thingClasses'))
// ) {
// addLogLine(
// '[MLService] Skipping people index as already synced to latest version'
// );
// return;
// }
// const thingClasses = await this.clusterThingClasses(syncContext);
// if (!thingClasses || thingClasses.length < 1) {
// return;
// }
// await mlIDbStorage.clearAllThingClasses();
// for (const thingClass of thingClasses) {
// await mlIDbStorage.putThingClass(thingClass);
// }
// await mlIDbStorage.setIndexVersion('thingClasses', filesVersion);
// }
// async getAllThingClasses() {
// return await mlIDbStorage.getAllThingClasses();
// }
}
export default new TextService();