diff --git a/modules/actions/index.js b/modules/actions/index.js index d57c0f5fd..636802d0b 100644 --- a/modules/actions/index.js +++ b/modules/actions/index.js @@ -23,7 +23,6 @@ export { actionMergePolygon } from './merge_polygon'; export { actionMergeRemoteChanges } from './merge_remote_changes'; export { actionMove } from './move'; export { actionMoveNode } from './move_node'; -export { actionMoveNote } from './move_note'; export { actionNoop } from './noop'; export { actionOrthogonalize } from './orthogonalize'; export { actionRestrictTurn } from './restrict_turn'; @@ -34,4 +33,4 @@ export { actionSplit } from './split'; export { actionStraighten } from './straighten'; export { actionUnrestrictTurn } from './unrestrict_turn'; export { actionReflect } from './reflect.js'; -export { actionDetachNode } from './detach_node'; \ No newline at end of file +export { actionDetachNode } from './detach_node'; diff --git a/modules/actions/move_note.js b/modules/actions/move_note.js deleted file mode 100644 index 97d89b97a..000000000 --- a/modules/actions/move_note.js +++ /dev/null @@ -1,17 +0,0 @@ -import { geoVecInterp } from '../geo'; -import { services } from '../services'; - -export function actionMoveNote(noteID, toLoc) { - - var action = function(graph, t) { - if (t === null || !isFinite(t)) t = 1; - t = Math.min(Math.max(+t, 0), 1); - - var note = services.osm.getNote(noteID); - note.move(geoVecInterp(note.loc, toLoc, t)); - }; - - action.transitionable = true; - - return action; -}