From 6d2795dcde8546b0053b7914b9dfc5a29989093b Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Mon, 3 Jun 2024 16:10:10 -0500 Subject: [PATCH] [PM-8027] Removing unnecessary code --- .../autofill-overlay-content.service.ts | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/apps/browser/src/autofill/services/autofill-overlay-content.service.ts b/apps/browser/src/autofill/services/autofill-overlay-content.service.ts index 8c46227aa5f..6033331257a 100644 --- a/apps/browser/src/autofill/services/autofill-overlay-content.service.ts +++ b/apps/browser/src/autofill/services/autofill-overlay-content.service.ts @@ -536,39 +536,6 @@ class AutofillOverlayContentService implements AutofillOverlayContentServiceInte return this.authStatus === AuthenticationStatus.Unlocked; } - /** - * Aggregates the autofill field's data into a single string - * that can be used to search for keywords. - * - * @param autofillFieldData - Autofill field data captured from the form field element. - */ - private getAutofillFieldDataKeywords(autofillFieldData: AutofillField) { - if (this.autofillFieldKeywordsMap.has(autofillFieldData)) { - return this.autofillFieldKeywordsMap.get(autofillFieldData); - } - - const keywordValues = [ - autofillFieldData.htmlID, - autofillFieldData.htmlName, - autofillFieldData.htmlClass, - autofillFieldData.type, - autofillFieldData.title, - autofillFieldData.placeholder, - autofillFieldData.autoCompleteType, - autofillFieldData["label-data"], - autofillFieldData["label-aria"], - autofillFieldData["label-left"], - autofillFieldData["label-right"], - autofillFieldData["label-tag"], - autofillFieldData["label-top"], - ] - .join(",") - .toLowerCase(); - this.autofillFieldKeywordsMap.set(autofillFieldData, keywordValues); - - return keywordValues; - } - /** * Validates that the most recently focused field is currently * focused within the root node relative to the field.