From ad1a28ced2d1de2996c479d2fb18c3a917e9c980 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Mon, 8 Mar 2021 18:20:23 +0100 Subject: [PATCH] Remove unused first parameter in some constructors Fixes #3214. Signed-off-by: Lucas Schwiderski --- lib/wibox/container/place.lua | 4 ++-- lib/wibox/container/radialprogressbar.lua | 2 +- lib/wibox/layout/stack.lua | 2 +- lib/wibox/widget/slider.lua | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/wibox/container/place.lua b/lib/wibox/container/place.lua index e20b9e76..83d422df 100644 --- a/lib/wibox/container/place.lua +++ b/lib/wibox/container/place.lua @@ -199,8 +199,8 @@ local function new(widget, halign, valign) return ret end -function place.mt:__call(_, ...) - return new(_, ...) +function place.mt:__call(...) + return new(...) end --@DOC_widget_COMMON@ diff --git a/lib/wibox/container/radialprogressbar.lua b/lib/wibox/container/radialprogressbar.lua index abf1c518..fc4b2430 100644 --- a/lib/wibox/container/radialprogressbar.lua +++ b/lib/wibox/container/radialprogressbar.lua @@ -277,7 +277,7 @@ local function new(widget) return ret end -function radialprogressbar.mt:__call(_, ...) +function radialprogressbar.mt:__call(...) return new(...) end diff --git a/lib/wibox/layout/stack.lua b/lib/wibox/layout/stack.lua index 6f3cd92a..33d363fc 100644 --- a/lib/wibox/layout/stack.lua +++ b/lib/wibox/layout/stack.lua @@ -204,7 +204,7 @@ local function new(...) return ret end -function stack.mt:__call(_, ...) +function stack.mt:__call(...) return new(...) end diff --git a/lib/wibox/widget/slider.lua b/lib/wibox/widget/slider.lua index 13bf84e5..f68de154 100644 --- a/lib/wibox/widget/slider.lua +++ b/lib/wibox/widget/slider.lua @@ -534,7 +534,7 @@ local function new(args) return ret end -function slider.mt:__call(_, ...) +function slider.mt:__call(...) return new(...) end