Skip to content

Commit

Permalink
remove unused functions, cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
LocalNewsTV authored and plasticviking committed Nov 4, 2024
1 parent 32b52f2 commit 0681d23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
4 changes: 0 additions & 4 deletions app/src/state/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,3 @@ export const EMAIL_TEMPLATES_RETRIEVE_REQUEST_SUCCESS = 'EMAIL_TEMPLATES_RETRIEV
export const EMAIL_TEMPLATES_RETRIEVE_REQUEST_FAILURE = 'EMAIL_TEMPLATES_RETRIEVE_REQUEST_FAILURE';

export const CRASH_HANDLE_GLOBAL_ERROR = 'CRASH_HANDLE_GLOBAL_ERROR';

export const NEW_ALERT = 'NEW_ALERT';
export const CLEAR_ALERTS = 'CLEAR_ALERTS';
export const CLEAR_ALERT = 'CLEAR_ALERT';
12 changes: 1 addition & 11 deletions app/src/state/sagas/activity.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { all, call, delay, put, select, take, takeEvery, takeLatest } from 'redux-saga/effects';
import { buffer } from '@turf/turf';
import {
ACTIVITY_BUILD_SCHEMA_FOR_FORM_REQUEST,
ACTIVITY_BUILD_SCHEMA_FOR_FORM_SUCCESS,
ACTIVITY_CHEM_TREATMENT_DETAILS_FORM_ON_CHANGE_REQUEST,
ACTIVITY_DEBUG,
ACTIVITY_LINK_RECORD_REQUEST,
ACTIVITY_ON_FORM_CHANGE_REQUEST,
ACTIVITY_ON_FORM_CHANGE_SUCCESS,
Expand Down Expand Up @@ -33,7 +31,6 @@ import {
handle_ACTIVITY_GET_SUGGESTED_PERSONS_REQUEST,
handle_ACTIVITY_GET_SUGGESTED_TREATMENT_IDS_REQUEST,
handle_ACTIVITY_ON_FORM_CHANGE_REQUEST,
handle_ACTIVITY_PASTE_REQUEST,
handle_ACTIVITY_SAVE_REQUEST,
handle_ACTIVITY_SAVE_SUCCESS,
handle_ACTIVITY_SUBMIT_REQUEST,
Expand All @@ -56,7 +53,7 @@ import { handle_ACTIVITY_RESTORE_OFFLINE, OFFLINE_ACTIVITY_SAGA_HANDLERS } from
import { selectUserSettings } from 'state/reducers/userSettings';
import RootUISchemas from 'rjsf/uiSchema/RootUISchemas';
import { AlertSeverity, AlertSubjects } from 'constants/alertEnums';
import { distance, kinks, lineToPolygon } from '@turf/turf';
import { buffer, distance, kinks, lineToPolygon } from '@turf/turf';
import GeoShapes from 'constants/geoShapes';
import { calculateGeometryArea } from 'utils/geometryHelpers';
import geomWithinBC from 'utils/geomWithinBC';
Expand All @@ -71,10 +68,6 @@ import GeoTracking from 'state/actions/geotracking/GeoTracking';
import Activity from 'state/actions/activity/Activity';
import { selectMap } from 'state/reducers/map';

function* handle_USER_SETTINGS_READY(action) {}

function* handle_ACTIVITY_DEBUG(action) {}

function* handle_ACTIVITY_DELETE_SUCESS(action) {
yield put(UserSettings.RecordSet.setSelected(null));
yield put(
Expand Down Expand Up @@ -411,8 +404,6 @@ function* activityPageSaga() {
takeEvery(Activity.copy, handle_ACTIVITY_COPY_REQUEST),
takeEvery(Activity.getNetworkRequest, handle_ACTIVITY_GET_NETWORK_REQUEST),
takeEvery(MAP_SET_COORDS, handle_MAP_SET_COORDS),
takeEvery(UserSettings.InitState.getSuccess, handle_USER_SETTINGS_READY),
takeEvery(UserSettings.Activity.setActiveActivityIdSuccess, handle_USER_SETTINGS_READY),
takeEvery(ACTIVITY_UPDATE_GEO_REQUEST, handle_ACTIVITY_UPDATE_GEO_REQUEST),
takeEvery(ACTIVITY_UPDATE_GEO_SUCCESS, handle_ACTIVITY_UPDATE_GEO_SUCCESS),
takeEvery(Activity.Suggestions.jurisdictions, handle_GET_SUGGESTED_JURISDICTIONS_REQUEST),
Expand All @@ -436,7 +427,6 @@ function* activityPageSaga() {
takeEvery(Activity.createNetwork, handle_ACTIVITY_CREATE_NETWORK),
takeEvery(Activity.createSuccess, handle_ACTIVITY_CREATE_SUCCESS),
takeEvery(Activity.submit, handle_ACTIVITY_SUBMIT_REQUEST),
takeEvery(ACTIVITY_DEBUG, handle_ACTIVITY_DEBUG),
takeEvery(Activity.getSuccess, handle_ACTIVITY_GET_SUCCESS),
takeEvery(Activity.Photo.delete, handle_ACTIVITY_DELETE_PHOTO_REQUEST),
takeEvery(Activity.Photo.add, handle_ACTIVITY_ADD_PHOTO_REQUEST),
Expand Down
4 changes: 2 additions & 2 deletions app/src/state/sagas/iappsite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function* iappPageSaga() {
takeEvery(IAPP_GET_NETWORK_REQUEST, handle_IAPP_GET_NETWORK_REQUEST),
takeEvery(IAPP_GET_SUCCESS, handle_IAPP_GET_SUCCESS),
takeEvery(IAPP_PAN_AND_ZOOM, handle_IAPP_PAN_AND_ZOOM),
takeEvery(UserSettings.InitState.getSuccess.type, handle_USER_SETTINGS_READY),
takeEvery(UserSettings.IAPP.setActiveSuccess.type, handle_USER_SETTINGS_READY)
takeEvery(UserSettings.InitState.getSuccess, handle_USER_SETTINGS_READY),
takeEvery(UserSettings.IAPP.setActiveSuccess, handle_USER_SETTINGS_READY)
]);
}

Expand Down

0 comments on commit 0681d23

Please sign in to comment.