Skip to content

Commit

Permalink
chore(eventing): Removing unnecessary annotations_mode_change event (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Conrad Chan authored Sep 8, 2020
1 parent a8b1938 commit 67d742b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
19 changes: 0 additions & 19 deletions src/store/eventing/__tests__/mode-test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/store/eventing/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import { handleAnnotationsInitialized } from './init';
import { handleCreateErrorEvents, handleCreatePendingEvents, handleCreateSuccessEvents } from './create';
import { handleFetchErrorEvents } from './fetch';
import { handleResetCreatorAction, handleSetStagedAction } from './staged';
import { handleToggleAnnotationModeAction } from './mode';
import { resetCreatorAction, setStagedAction } from '../creator';
import { toggleAnnotationModeAction } from '../common/actions';

// Array of event handlers based on redux action. To add handling for new events add an entry keyed by action
const eventHandlers: EventHandlerMap = {
Expand All @@ -26,7 +24,6 @@ const eventHandlers: EventHandlerMap = {
[setActiveAnnotationIdAction.toString()]: handleActiveAnnotationEvents,
[setIsInitialized.toString()]: handleAnnotationsInitialized,
[setStagedAction.toString()]: handleSetStagedAction,
[toggleAnnotationModeAction.toString()]: handleToggleAnnotationModeAction,
};

function getEventingMiddleware(handlers: EventHandlerMap = eventHandlers): Middleware {
Expand Down
7 changes: 0 additions & 7 deletions src/store/eventing/mode.ts

This file was deleted.

0 comments on commit 67d742b

Please sign in to comment.