From 40797fe821c4710188fff7c3e78df02a8124c968 Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Mon, 18 Mar 2024 11:32:19 +0100 Subject: [PATCH] remove unused function in feature.go --- feature.go | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/feature.go b/feature.go index 77eb8c1..9b3b443 100644 --- a/feature.go +++ b/feature.go @@ -27,31 +27,6 @@ const ( ImageProperties ) -// DetectionType returns a value of detection type. -func (d DetectionFeature) String() string { - switch d { - case TypeUnspecified: - return "TYPE_UNSPECIFIED" - case FaceDetection: - return "FACE_DETECTION" - case LandmarkDetection: - return "LANDMARK_DETECTION" - case LogoDetection: - return "LOGO_DETECTION" - case LabelDetection: - return "LABEL_DETECTION" - case TextDetection: - return "TEXT_DETECTION" - case DocumentTextDetection: - return "DOCUMENT_TEXT_DETECTION" - case SafeSearchDetection: - return "SAFE_SEARCH_DETECTION" - case ImageProperties: - return "IMAGE_PROPERTIES" - } - return "" -} - func (d DetectionFeature) VisionFeature() visionpb.Feature_Type { switch d { case TypeUnspecified: