Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove unused

Manav Rathic2e42266a6a8
diff --git a/web/apps/photos/src/services/face/db.ts b/web/apps/photos/src/services/face/db.ts
index 6095a40ed2..3c6999e681 100644
--- a/web/apps/photos/src/services/face/db.ts
+++ b/web/apps/photos/src/services/face/db.ts
@@ -283,12 +283,6 @@ class MLIDbStorage {
await Promise.all(fileIds.map((fileId) => tx.store.delete(fileId)));
}
- public async getFace(fileID: number, faceId: string) {
- const file = await this.getFile(fileID);
- const face = file.faces.filter((f) => f.id === faceId);
- return face[0];
- }
-
public async getPerson(id: number) {
const db = await this.db;
return db.get("people", id);
diff --git a/web/apps/photos/src/services/face/f-index.ts b/web/apps/photos/src/services/face/f-index.ts
index 959c5c0b5a..2910772673 100644
--- a/web/apps/photos/src/services/face/f-index.ts
+++ b/web/apps/photos/src/services/face/f-index.ts
@@ -681,6 +681,7 @@ const extractFaceCrop = (
imageBitmap: ImageBitmap,
alignment: FaceAlignment,
): ImageBitmap => {
+ // TODO-ML: Do we need to round twice?
const alignmentBox = roundBox(
new Box({
x: alignment.center.x - alignment.size / 2,