From 01dd53328beff3ff44c8c269ab8d8aa41e08acf4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 10 Feb 2022 16:36:36 -0600 Subject: [PATCH] Cleanup unused code --- app/soapbox/actions/auth.js | 5 ----- app/soapbox/utils/quirks.js | 1 - 2 files changed, 6 deletions(-) diff --git a/app/soapbox/actions/auth.js b/app/soapbox/actions/auth.js index 65c1dc0f5..5da8d579e 100644 --- a/app/soapbox/actions/auth.js +++ b/app/soapbox/actions/auth.js @@ -18,7 +18,6 @@ import KVStore from 'soapbox/storage/kv_store'; import { getLoggedInAccount, parseBaseURL } from 'soapbox/utils/auth'; import sourceCode from 'soapbox/utils/code'; import { getFeatures } from 'soapbox/utils/features'; -import { getQuirks } from 'soapbox/utils/quirks'; import { isStandalone } from 'soapbox/utils/state'; import api, { baseClient } from '../api'; @@ -63,10 +62,6 @@ function createAppAndToken() { function createAuthApp() { return (dispatch, getState) => { - // Mitra: skip creating the app - const quirks = getQuirks(getState().get('instance')); - if (quirks.skipsAppCreation) return dispatch(noOp()); - const params = { client_name: sourceCode.displayName, redirect_uris: 'urn:ietf:wg:oauth:2.0:oob', diff --git a/app/soapbox/utils/quirks.js b/app/soapbox/utils/quirks.js index e3ec5e651..864f1effd 100644 --- a/app/soapbox/utils/quirks.js +++ b/app/soapbox/utils/quirks.js @@ -8,7 +8,6 @@ export const getQuirks = createSelector([ ], (v) => { return { invertedPagination: v.software === PLEROMA, - skipsAppCreation: v.software === MITRA, ethereumLoginOnly: v.software === MITRA, }; });