summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com>2014-11-26 10:57:04 -0300
committerPatrick Maia <pmaia@thoughtworks.com>2014-11-27 17:05:08 -0300
commitc079e101b19e4596b72536679ad9e302a80bcff2 (patch)
tree9566a5b6ca0a0c3233daa90431eceae6b25cf552
parentb56d60ba7dda1da46287051f8bf6a76546e1a8ce (diff)
removes unused code
-rw-r--r--service/pixelated/config/app_factory.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py
index eb31a271..38422a64 100644
--- a/service/pixelated/config/app_factory.py
+++ b/service/pixelated/config/app_factory.py
@@ -30,7 +30,6 @@ from pixelated.bitmask_libraries.leap_srp import LeapAuthException
from requests.exceptions import ConnectionError
from pixelated.controllers import *
from pixelated.adapter.tag_service import TagService
-import os
from leap.common.events import (
register,
unregister,
@@ -125,14 +124,3 @@ def create_app(app, bind_address, bind_port):
reactor.listenTCP(bind_port, Site(app.resource()), interface=bind_address)
reactor.callWhenRunning(lambda: init_app(app))
reactor.run()
-
-
-def get_static_folder():
- static_folder = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "..", "web-ui", "app"))
- # this is a workaround for packaging
- if not os.path.exists(static_folder):
- static_folder = os.path.abspath(
- os.path.join(os.path.abspath(__file__), "..", "..", "..", "..", "web-ui", "app"))
- if not os.path.exists(static_folder):
- static_folder = os.path.join('/', 'usr', 'share', 'pixelated-user-agent')
- return static_folder