From 25ced9ce9d3de27996da8778a79fcf91557bba88 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 18 May 2024 08:00:42 +0530 Subject: [PATCH] Prune --- .../machineLearning/machineLearningService.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/web/apps/photos/src/services/machineLearning/machineLearningService.ts b/web/apps/photos/src/services/machineLearning/machineLearningService.ts index c57866f162..57b2c06a0b 100644 --- a/web/apps/photos/src/services/machineLearning/machineLearningService.ts +++ b/web/apps/photos/src/services/machineLearning/machineLearningService.ts @@ -23,7 +23,6 @@ import { EnteFile } from "types/file"; import { isInternalUserForML } from "utils/user"; import { regenerateFaceCrop, syncFileAnalyzeFaces } from "../face/f-index"; import { fetchImageBitmapForContext } from "../face/image"; -import { syncPeopleIndex } from "../face/people"; /** * TODO-ML(MR): What and why. @@ -466,17 +465,6 @@ class MachineLearningService { console.error("Error while storing ml sync error", e); } } - - private async getMLLibraryData(syncContext: MLSyncContext) { - syncContext.mlLibraryData = await mlIDbStorage.getLibraryData(); - if (!syncContext.mlLibraryData) { - syncContext.mlLibraryData = {}; - } - } - - private async persistMLLibraryData(syncContext: MLSyncContext) { - return mlIDbStorage.putLibraryData(syncContext.mlLibraryData); - } } export default new MachineLearningService();