Remove wibox.hierarchy:get_parent()
It's unused. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
5406ac6fe1
commit
45323f2801
|
@ -96,11 +96,6 @@ function hierarchy.new(context, widget, width, height, redraw_callback, layout_c
|
|||
return hierarchy_new(context, widget, width, height, redraw_callback, layout_callback, callback_arg, nil)
|
||||
end
|
||||
|
||||
--- Get the parent hierarchy of this widget hierarchy (or nil).
|
||||
function hierarchy:get_parent()
|
||||
return self._parent
|
||||
end
|
||||
|
||||
--- Get the widget that this hierarchy manages.
|
||||
function hierarchy:get_widget()
|
||||
return self._widget
|
||||
|
|
|
@ -34,10 +34,6 @@ describe("wibox.hierarchy", function()
|
|||
instance = hierarchy.new(context, widget, 10, 20, nop, nop)
|
||||
end)
|
||||
|
||||
it("get_parent", function()
|
||||
assert.is_nil(instance:get_parent())
|
||||
end)
|
||||
|
||||
it("get_widget", function()
|
||||
assert.is.equal(instance:get_widget(), widget)
|
||||
end)
|
||||
|
@ -155,12 +151,6 @@ describe("wibox.hierarchy", function()
|
|||
hierarchy_child = children[1]
|
||||
end)
|
||||
|
||||
it("get_parent", function()
|
||||
assert.is.equal(hierarchy_child:get_parent(), hierarchy_intermediate)
|
||||
assert.is.equal(hierarchy_intermediate:get_parent(), hierarchy_parent)
|
||||
assert.is_nil(hierarchy_parent:get_parent())
|
||||
end)
|
||||
|
||||
it("get_widget", function()
|
||||
assert.is.equal(hierarchy_child:get_widget(), child)
|
||||
assert.is.equal(hierarchy_intermediate:get_widget(), intermediate)
|
||||
|
|
Loading…
Reference in New Issue