diff --git a/src/context.cc b/src/context.cc index 519a6889..697df468 100644 --- a/src/context.cc +++ b/src/context.cc @@ -93,13 +93,6 @@ void JumpList::push(SelectionList jump) m_current = m_jumps.size(); } -void JumpList::drop() -{ - if (not m_jumps.empty()) - m_jumps.pop_back(); - m_current = m_jumps.size(); -} - const SelectionList& JumpList::forward() { if (m_current != m_jumps.size() and diff --git a/src/context.hh b/src/context.hh index 9a6045f3..2574abbb 100644 --- a/src/context.hh +++ b/src/context.hh @@ -53,7 +53,6 @@ private: struct JumpList { void push(SelectionList jump); - void drop(); const SelectionList& forward(); const SelectionList& backward(const SelectionList& current); void forget_buffer(Buffer& buffer); diff --git a/src/normal.cc b/src/normal.cc index 84956e08..d5d0b4d3 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1152,12 +1152,6 @@ void push_selections(Context& context, NormalParams) get_face("Information") }); } -void drop_jump(Context& context, NormalParams) -{ - context.jump_list().drop(); - context.print_status({ "dropped last jump", get_face("Information") }); -} - void align(Context& context, NormalParams) { auto& selections = context.selections(); @@ -1652,7 +1646,6 @@ static NormalCmdDesc cmds[] = { ctrl('i'), "jump forward in jump list",jump }, { ctrl('o'), "jump backward in jump list", jump }, { ctrl('s'), "push current selections in jump list", push_selections }, - { ctrl('d'), "drop last jump from jump list", drop_jump }, { '\'', "rotate main selection", rotate_selections }, { alt('\''), "rotate selections content", rotate_selections_content },