Skip to content

Commit

Permalink
[Editor] Remove some useless code (mozilla#15373 follow-up)
Browse files Browse the repository at this point in the history
  • Loading branch information
calixteman committed Sep 1, 2022
1 parent e9bdbe4 commit c4aa00b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/display/editor/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,7 @@ class AnnotationEditorUIManager {
* @param {Object} details
*/
onEditingAction(details) {
if (
["undo", "redo", "cut", "copy", "paste", "delete", "selectAll"].includes(
details.name
)
) {
if (["undo", "redo", "delete", "selectAll"].includes(details.name)) {
this[details.name]();
}
}
Expand Down

0 comments on commit c4aa00b

Please sign in to comment.