Update #168 Remove unused global on_layout_change

This commit is contained in:
Insality 2022-03-01 02:09:28 +02:00
parent 129a102cc8
commit a87a576ded
2 changed files with 0 additions and 22 deletions

View File

@ -120,17 +120,6 @@ function M.on_window_callback(event)
end
--- Callback on global layout change event.
-- @function druid.on_layout_change
function M.on_layout_change()
local instances = get_druid_instances()
for i = 1, #instances do
msg.post(instances[i].url, base_component.ON_LAYOUT_CHANGE)
end
end
--- Callback on global language change event.
-- Use to update all lang texts
-- @function druid.on_language_change

View File

@ -410,17 +410,6 @@ function DruidInstance.on_focus_gained(self)
end
--- Druid on layout change function.
-- Called on update gui layout
-- @tparam DruidInstance self
function DruidInstance.on_layout_change(self)
local components = self.components_interest[base_component.ON_LAYOUT_CHANGE]
for i = 1, #components do
components[i]:on_layout_change()
end
end
--- Druid on language change.
-- This one called by global gruid.on_language_change, but can be
-- call manualy to update all translations