awesome/lib/wibox/layout
Shay Agroskin 749422100e layout/fixed: Remove code duplication
The function has several expressions of the form
    if self._private.dir == "y" then
This patch stores the result of
    self._private.dir == "y"
to avoid code duplication.

Also remove the 'used_in_dir' and 'in_dir' variables since their values
can be calculated using other variables in the function and updating
them individually is error prone.

This patch doesn't do any functional changes.

Signed-off-by: Shay Agroskin <agrosshay@gmail.com>
2021-03-26 16:11:01 +03:00
..
align.lua doc: Upgrade the widget layout documentation. 2019-11-30 01:26:06 -05:00
constraint.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
fixed.lua layout/fixed: Remove code duplication 2021-03-26 16:11:01 +03:00
flex.lua doc: Upgrade the widget layout documentation. 2019-11-30 01:26:06 -05:00
grid.lua Fix setters/getters for grid layout direction properties 2020-10-10 17:32:04 +02:00
init.lua Fix ldoc modules summaries missing the final `.`. 2019-11-28 13:53:59 +01:00
manual.lua doc: Upgrade the widget layout documentation. 2019-11-30 01:26:06 -05:00
margin.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
mirror.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
ratio.lua Fix adjust misspelling 2020-07-31 17:33:12 -06:00
rotate.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
scroll.lua Move awful.util.deprecate and awful.util.deprecate_class to gears.debug 2017-03-15 20:08:22 -05:00
stack.lua Remove unused first parameter in some constructors 2021-03-08 20:09:41 +01:00