Skip to content

Commit

Permalink
Remove unused routes function
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Jun 1, 2018
1 parent 412673b commit 3ba3f9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion spyder_terminal/server/common.py
Expand Up @@ -11,7 +11,7 @@ def create_app(shell, close_future=None):
"""Create and return a tornado Web Application instance."""
settings = {"static_path": os.path.join(
os.path.dirname(__file__), "static")}
application = tornado.web.Application(routes.gen_routes(close_future),
application = tornado.web.Application(routes.ROUTES,
debug=True,
serve_traceback=True,
autoreload=True, **settings)
Expand Down
11 changes: 0 additions & 11 deletions spyder_terminal/server/routes.py
Expand Up @@ -36,14 +36,3 @@
]

ROUTES = REST + WS + WEB


def gen_routes(close_future):
"""Return a list of HTML redirection routes."""
if close_future is not None:
ws = []
for route in WS:
ws.append((route[0], route[1],
dict(close_future=close_future)))
return REST + ws + WEB
return ROUTES

0 comments on commit 3ba3f9a

Please sign in to comment.