From eeb062f6c9c0c7362249752949232d9109afdd70 Mon Sep 17 00:00:00 2001 From: jachamp <28732543+jimchamp@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:01:17 -0700 Subject: [PATCH 1/2] Remove unreferenced style rules --- static/css/components/tagging-menu.less | 55 ------------------------- 1 file changed, 55 deletions(-) diff --git a/static/css/components/tagging-menu.less b/static/css/components/tagging-menu.less index 0d2837db5dc..582c9446a64 100644 --- a/static/css/components/tagging-menu.less +++ b/static/css/components/tagging-menu.less @@ -72,22 +72,6 @@ } } -.search-subject-row { - display: flex; - align-items: center; - font-size: 16px; - border-bottom: 1px solid @light-grey; - border-top: 1px solid @light-grey; - padding: 7px; - width: 100%; - min-height: 38px; - cursor: pointer; -} - -.search-subject-row:hover { - background-color: @button-hover-blue; -} - // Holds the button .submit-tags-section { padding: 5px; @@ -148,45 +132,6 @@ } } -.search-subject-row-subject-info { - display: flex; - flex-direction: column; - justify-content: center; - align-items: flex-end; - gap: 2px; - margin-left: auto; -} - -.search-subject-work-count { - color: @grey; - font-size: 8px; - margin-right: 2px; -} - -.search-subject-type { - font-size: 11px; - font-weight: 700; - border-radius: 8px; - padding: 2px 6px; -} - -.new-selected-subject-tag { - border: 1px solid @lighter-grey; - padding: 2px 6px; - font-size: 13px; - height: 20px; - width: fit-content; - text-align: center; -} - -.remove-selected-subject { - font-size: 11px; - color: @black; - font-weight: bold; - cursor: pointer; - margin-left: 7px; -} - .selected-tag { color: @black; cursor: pointer; From b8d0bae11e0a6f014970eafda6bdf4c2dd137226 Mon Sep 17 00:00:00 2001 From: jachamp <28732543+jimchamp@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:05:30 -0700 Subject: [PATCH 2/2] Remove unused `BulkTagger` property --- .../plugins/openlibrary/js/bulk-tagger/BulkTagger.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js b/openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js index 2f993b59b27..a3e9bf7e0bf 100644 --- a/openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js +++ b/openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js @@ -102,17 +102,6 @@ export class BulkTagger { */ this.existingSubjects = new Map() - /** - * Stores arrays of selected menu options. - * - * Tag names are the keys to this map. Corresponding arrays - * will contain menu options having the same name, but different - * types. - * - * @member {Map} - */ - this.menuOptions = new Map() - /** * Array containing OLIDs of each selected work. *