Skip to content

Commit 74daccf

Browse files
committed
clean menu
1 parent 4344edb commit 74daccf

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

libeditor/src/main/java/com/jecelyin/editor/v2/common/Command.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ public enum CommandEnum {
5050
FIND,
5151
GOTO_TOP,
5252
GOTO_END,
53-
CURSOR_BACK,
54-
CURSOR_FORWARD,
5553
DOC_INFO,
5654
READONLY_MODE,
5755
HIGHLIGHT,

libeditor/src/main/java/com/jecelyin/editor/v2/widget/menu/MenuFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
import java.util.List;
2929
import java.util.Map;
3030

31-
import static com.jecelyin.editor.v2.common.Command.CommandEnum.CURSOR_BACK;
32-
import static com.jecelyin.editor.v2.common.Command.CommandEnum.CURSOR_FORWARD;
3331
import static com.jecelyin.editor.v2.common.Command.CommandEnum.DOC_INFO;
3432
import static com.jecelyin.editor.v2.common.Command.CommandEnum.FIND;
3533
import static com.jecelyin.editor.v2.common.Command.CommandEnum.FORMAT_SOURCE;
@@ -124,8 +122,6 @@ private void initAllMenuItem() {
124122
menuItemInfos.add(new MenuItemInfo(MenuGroup.EDIT, R.id.action_goto_top, GOTO_TOP, R.drawable.ic_vertical_align_top_white_24dp, R.string.jump_to_start));
125123
menuItemInfos.add(new MenuItemInfo(MenuGroup.EDIT, R.id.action_goto_end, GOTO_END, R.drawable.ic_vertical_align_bottom_white_24dp, R.string.jump_to_end));
126124
menuItemInfos.add(new MenuItemInfo(MenuGroup.EDIT, R.id.action_goto_line, GOTO_INDEX, R.drawable.m_goto_line, R.string.goto_line));
127-
menuItemInfos.add(new MenuItemInfo(MenuGroup.EDIT, R.id.action_cursor_back, CURSOR_BACK, R.drawable.ic_arrow_back_white_24dp, R.string.cursor_back));
128-
menuItemInfos.add(new MenuItemInfo(MenuGroup.EDIT, R.id.action_cursor_forward, CURSOR_FORWARD, R.drawable.ic_arrow_forward_white_24dp, R.string.cursor_forward));
129125
menuItemInfos.add(new MenuItemInfo(MenuGroup.EDIT, R.id.action_share_code, SHARE_CODE, R.drawable.baseline_share_24, R.string.share_code));
130126
menuItemInfos.add(new MenuItemInfo(MenuGroup.EDIT, R.id.action_format_source, FORMAT_SOURCE, R.drawable.baseline_format_indent_increase_24, R.string.format_source));
131127

0 commit comments

Comments
 (0)