mirror of
https://github.com/vidarh/rubywm.git
synced 2024-11-15 19:48:30 +01:00
Cleanup/remove excess checks (remnants of debugging)
This commit is contained in:
parent
898077f872
commit
b6b16402ed
1 changed files with 0 additions and 3 deletions
3
node.rb
3
node.rb
|
@ -35,14 +35,11 @@ class Node
|
|||
end
|
||||
|
||||
def place_adjacent(window, focus, dir)
|
||||
l = (self.parent || self).find(window)
|
||||
raise if l
|
||||
if nodes.length == 2
|
||||
i = nodes.index(focus) || 1
|
||||
dir ||= Node.swapdir(@dir) || :lr
|
||||
@nodes[i] = Node.new([focus, Leaf.new(window)], parent: self, dir: dir)
|
||||
else
|
||||
#@dir ||= dir if dir
|
||||
append(window)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue