Skip to content
Snippets Groups Projects
Commit d9b5e26a authored by markus's avatar markus
Browse files

Remove obsolete Time dummy class

parent c77e4c13
No related branches found
No related tags found
No related merge requests found
...@@ -11,28 +11,6 @@ import os ...@@ -11,28 +11,6 @@ import os
CONFIG_NAME = "clock.json" CONFIG_NAME = "clock.json"
class Time:
def __init__(self, start=0):
self.time = start
self.wait_time = 0.95
def tick(self):
sleep(self.wait_time)
self.time += 1
@property
def second(self):
return self.time % 60
@property
def minute(self):
return (self.time / 60) % 60
@property
def hour(self):
return (self.time / 3600) % 24
class Clock: class Clock:
def __init__( def __init__(
self, self,
...@@ -60,7 +38,6 @@ class Clock: ...@@ -60,7 +38,6 @@ class Clock:
) )
self.run_once = run_once self.run_once = run_once
self.offsetx = offsetx self.offsetx = offsetx
self.time = Time()
self.theme = 0 self.theme = 0
self.default_themes = [ self.default_themes = [
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment