From 678b8871857f5799a2c8220f0aba517ba6ce90fc Mon Sep 17 00:00:00 2001 From: Bauke Date: Thu, 17 Aug 2023 11:32:38 +0200 Subject: [PATCH] Revert "Add storage and UI for anonymizing only the logged in user." This reverts commit 9bd35ee17e7e746be4b2d76f92ef5fe596a1f4a2. --- .../components/anonymize-usernames.tsx | 23 ------------------- source/storage/anonymize-usernames.ts | 1 - source/storage/exports.ts | 1 - 3 files changed, 25 deletions(-) diff --git a/source/options/components/anonymize-usernames.tsx b/source/options/components/anonymize-usernames.tsx index 9868150..bfd9f89 100644 --- a/source/options/components/anonymize-usernames.tsx +++ b/source/options/components/anonymize-usernames.tsx @@ -37,17 +37,6 @@ export class AnonymizeUsernamesSetting extends Component { this.setState({data}); }; - selfOnlyClicked = async () => { - const {data} = this.state; - if (data === undefined) { - return; - } - - data.value.selfOnly = !data.value.selfOnly; - await data.save(); - this.setState({data}); - }; - render() { const {data} = this.state; if (data === undefined) { @@ -63,17 +52,6 @@ export class AnonymizeUsernamesSetting extends Component { )); - const selfOnlyCheckbox = ( - - ); - return (

@@ -89,7 +67,6 @@ export class AnonymizeUsernamesSetting extends Component { {replacementTypeOptions} -

  • {selfOnlyCheckbox}
  • ); diff --git a/source/storage/anonymize-usernames.ts b/source/storage/anonymize-usernames.ts index 1482e69..7653a78 100644 --- a/source/storage/anonymize-usernames.ts +++ b/source/storage/anonymize-usernames.ts @@ -20,5 +20,4 @@ export function isReplacementType(input: string): input is ReplacementType { */ export type AnonymizeUsernamesData = { replacementType: ReplacementType; - selfOnly: boolean; }; diff --git a/source/storage/exports.ts b/source/storage/exports.ts index ff3eefb..e54db1b 100644 --- a/source/storage/exports.ts +++ b/source/storage/exports.ts @@ -84,7 +84,6 @@ export const storageValues = { key: Feature.AnonymizeUsernames, value: { replacementType: ReplacementType.Numerical, - selfOnly: false, }, storage: browser.storage.sync, }),