Permalink
Browse files

clean up iterm_core

  • Loading branch information...
1 parent 92c9676 commit 8ad8663c28c5489209d3bbc14f74bfddc0579efe @LevelbossMike LevelbossMike committed Apr 29, 2011
Showing with 2 additions and 16 deletions.
  1. +2 −16 lib/terminitor/cores/iterm_core.rb
@@ -52,11 +52,6 @@ def terminal_process
Appscript.app("System Events").processes["iTerm"]
end
- # Returns the last instantiated tab from active window
- def return_last_tab
- current_terminal.sessions.last.get rescue false
- end
-
# returns the active windows
def active_window
current_terminal.current_session
@@ -173,16 +168,15 @@ def first_pane_level_split(panes, tab_commands)
pane_commands = pane_content[:commands]
execute_pane_commands(pane_commands, tab_commands)
end
- split_v_counter.times { select_left_pane }
+ split_v_counter.times { select_pane('Left') }
end
def second_pane_level_split(panes, tab_commands)
panes.keys.sort.each do |pane_key|
pane_content = panes[pane_key]
handle_subpanes(pane_content[:panes], tab_commands) if pane_content.has_key? :panes
- # if not last in array
# select next vertical pane
- select_pane_right
+ select_pane('Right')
end
end
@@ -257,14 +251,6 @@ def select_pane(direction)
end
end
- def select_left_pane
- select_pane('Left')
- end
-
- def select_pane_right
- select_pane('Right')
- end
-
private
# These methods are here for reference so I can ponder later

0 comments on commit 8ad8663

Please sign in to comment.