Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Cleanup face models

laurenspriema0d8dd9b9e5e
diff --git a/mobile/lib/face/model/detection.dart b/mobile/lib/face/model/detection.dart
index 44329196a4..f77fd61b8a 100644
--- a/mobile/lib/face/model/detection.dart
+++ b/mobile/lib/face/model/detection.dart
@@ -46,10 +46,6 @@ class Detection {
);
}
- int getFaceArea(int imageWidth, int imageHeight) {
- return (box.width * imageWidth * box.height * imageHeight).toInt();
- }
-
FaceDirection getFaceDirection() {
if (isEmpty) {
return FaceDirection.straight;
diff --git a/mobile/lib/face/model/face.dart b/mobile/lib/face/model/face.dart
index c215389491..7088908f28 100644
--- a/mobile/lib/face/model/face.dart
+++ b/mobile/lib/face/model/face.dart
@@ -31,13 +31,6 @@ class Face {
bool get isHighQuality => (!isBlurry) && hasHighScore;
- int area({int? w, int? h}) {
- return detection.getFaceArea(
- fileInfo?.imageWidth ?? w ?? 0,
- fileInfo?.imageHeight ?? h ?? 0,
- );
- }
-
Face(
this.faceID,
this.fileID,