From 605b09afbed177dd77f17a047cfd365959416392 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Wed, 2 Feb 2022 15:25:28 +0200 Subject: [PATCH] CalendarView: remove unused CalendarTitle --- plugins/statistics.koplugin/calendarview.lua | 33 -------------------- 1 file changed, 33 deletions(-) diff --git a/plugins/statistics.koplugin/calendarview.lua b/plugins/statistics.koplugin/calendarview.lua index 02ba7b9b6..8fd2de309 100644 --- a/plugins/statistics.koplugin/calendarview.lua +++ b/plugins/statistics.koplugin/calendarview.lua @@ -28,39 +28,6 @@ local Input = Device.input local Screen = Device.screen local _ = require("gettext") -local CalendarTitle = VerticalGroup:new{ - calendar_view = nil, - title = "", - tface = Font:getFace("tfont"), - align = "left", -} - -function CalendarTitle:init() - self.close_button = CloseButton:new{ window = self } - local btn_width = self.close_button:getSize().w - self.text_w = TextWidget:new{ - text = self.title, - max_width = self.width - btn_width, - face = self.tface, - } - table.insert(self, OverlapGroup:new{ - dimen = { w = self.width }, - self.text_w, - self.close_button, - }) - table.insert(self, VerticalSpan:new{ width = Size.span.vertical_large }) -end - -function CalendarTitle:setTitle(title) - self.text_w:setText(title) -end - -function CalendarTitle:onClose() - self.calendar_view:onClose() - return true -end - - local HistogramWidget = Widget:new{ width = nil, height = nil,