From a0d8dd9b9e5ee176af0f48953e78237788aeba96 Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Sat, 22 Jun 2024 18:30:55 +0530 Subject: [PATCH] [mob][photos] Cleanup face models --- mobile/lib/face/model/detection.dart | 4 ---- mobile/lib/face/model/face.dart | 7 ------- 2 files changed, 11 deletions(-) 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,