Clean up old flipper rating system
Summary: Found some unused code from the rating prototype before switching to itsr. Deleting it. Reviewed By: cekkaewnumchai Differential Revision: D18298155 fbshipit-source-id: 3529db17494f4f5bf7d7841460203d1c3856299a
This commit is contained in:
committed by
Facebook Github Bot
parent
ed2343b3c6
commit
42a77094f4
@@ -77,7 +77,6 @@ export type State = {
|
||||
serverPorts: ServerPorts;
|
||||
downloadingImportData: boolean;
|
||||
launcherMsg: LauncherMsg;
|
||||
flipperRating: number | null;
|
||||
statusMessages: Array<string>;
|
||||
xcodeCommandLineToolsDetected: boolean;
|
||||
};
|
||||
@@ -120,12 +119,6 @@ export type Action =
|
||||
message: string;
|
||||
};
|
||||
}
|
||||
| {
|
||||
type: 'SET_FLIPPER_RATING';
|
||||
payload: {
|
||||
rating: number;
|
||||
};
|
||||
}
|
||||
| {
|
||||
type: 'UNSET_SHARE';
|
||||
}
|
||||
@@ -169,7 +162,6 @@ export const initialState: () => State = () => ({
|
||||
severity: 'warning',
|
||||
message: '',
|
||||
},
|
||||
flipperRating: null,
|
||||
statusMessages: [],
|
||||
xcodeCommandLineToolsDetected: false,
|
||||
});
|
||||
@@ -242,11 +234,6 @@ export default function reducer(
|
||||
...state,
|
||||
launcherMsg: action.payload,
|
||||
};
|
||||
} else if (action.type === 'SET_FLIPPER_RATING') {
|
||||
return {
|
||||
...state,
|
||||
flipperRating: action.payload.rating,
|
||||
};
|
||||
} else if (action.type === 'SET_EXPORT_STATUS_MESSAGE') {
|
||||
if (state.share) {
|
||||
const {share} = state;
|
||||
@@ -344,13 +331,6 @@ export const toggleRightSidebarAvailable = (payload?: boolean): Action => ({
|
||||
payload,
|
||||
});
|
||||
|
||||
export const setFlipperRating = (rating: number): Action => ({
|
||||
type: 'SET_FLIPPER_RATING',
|
||||
payload: {
|
||||
rating,
|
||||
},
|
||||
});
|
||||
|
||||
export const setExportURL = (result: string): Action => ({
|
||||
type: 'SET_EXPORT_URL',
|
||||
payload: result,
|
||||
|
||||
@@ -59,7 +59,7 @@ export type Actions =
|
||||
| {type: 'INIT'};
|
||||
|
||||
export type State = {
|
||||
application: ApplicationState & PersistPartial;
|
||||
application: ApplicationState;
|
||||
connections: DevicesState & PersistPartial;
|
||||
pluginStates: PluginStatesState;
|
||||
notifications: NotificationsState & PersistPartial;
|
||||
@@ -81,14 +81,7 @@ const settingsStorage = new JsonFileStorage(
|
||||
);
|
||||
|
||||
export default combineReducers<State, Actions>({
|
||||
application: persistReducer<ApplicationState, Actions>(
|
||||
{
|
||||
key: 'application',
|
||||
storage,
|
||||
whitelist: ['flipperRating'],
|
||||
},
|
||||
application,
|
||||
),
|
||||
application,
|
||||
connections: persistReducer<DevicesState, Actions>(
|
||||
{
|
||||
key: 'connections',
|
||||
|
||||
Reference in New Issue
Block a user