Cleanup unused code
This commit is contained in:
parent
f051b70b10
commit
01dd53328b
|
@ -18,7 +18,6 @@ import KVStore from 'soapbox/storage/kv_store';
|
||||||
import { getLoggedInAccount, parseBaseURL } from 'soapbox/utils/auth';
|
import { getLoggedInAccount, parseBaseURL } from 'soapbox/utils/auth';
|
||||||
import sourceCode from 'soapbox/utils/code';
|
import sourceCode from 'soapbox/utils/code';
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
import { getQuirks } from 'soapbox/utils/quirks';
|
|
||||||
import { isStandalone } from 'soapbox/utils/state';
|
import { isStandalone } from 'soapbox/utils/state';
|
||||||
|
|
||||||
import api, { baseClient } from '../api';
|
import api, { baseClient } from '../api';
|
||||||
|
@ -63,10 +62,6 @@ function createAppAndToken() {
|
||||||
|
|
||||||
function createAuthApp() {
|
function createAuthApp() {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
// Mitra: skip creating the app
|
|
||||||
const quirks = getQuirks(getState().get('instance'));
|
|
||||||
if (quirks.skipsAppCreation) return dispatch(noOp());
|
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
client_name: sourceCode.displayName,
|
client_name: sourceCode.displayName,
|
||||||
redirect_uris: 'urn:ietf:wg:oauth:2.0:oob',
|
redirect_uris: 'urn:ietf:wg:oauth:2.0:oob',
|
||||||
|
|
|
@ -8,7 +8,6 @@ export const getQuirks = createSelector([
|
||||||
], (v) => {
|
], (v) => {
|
||||||
return {
|
return {
|
||||||
invertedPagination: v.software === PLEROMA,
|
invertedPagination: v.software === PLEROMA,
|
||||||
skipsAppCreation: v.software === MITRA,
|
|
||||||
ethereumLoginOnly: v.software === MITRA,
|
ethereumLoginOnly: v.software === MITRA,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue