dbus: remove the now-obsolete main() method

This commit is contained in:
Peter Hutterer 2018-01-15 14:40:52 +10:00
parent f293ef6e14
commit b7ce16fd38
1 changed files with 0 additions and 15 deletions

View File

@ -12,7 +12,6 @@
# #
import logging import logging
import sys
import json import json
from gi.repository import GObject, Gio, GLib from gi.repository import GObject, Gio, GLib
@ -211,17 +210,3 @@ class TuhiDBusServer(GObject.Object):
def _on_device_added(self, tuhi, device): def _on_device_added(self, tuhi, device):
dev = TuhiDBusDevice(device, self._connection) dev = TuhiDBusDevice(device, self._connection)
self._devices.append(dev) self._devices.append(dev)
def main(args):
t = TuhiDBusServer()
try:
GObject.MainLoop().run()
except KeyboardInterrupt:
pass
finally:
t.cleanup()
if __name__ == "__main__":
main(sys.argv)