Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 3662164

Browse files
author
Arthur Evans
committed
Remove unused push lib.
1 parent 8ba5635 commit 3662164

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "lib/http2push"]
2-
path = lib/http2push
3-
url = https://github.com/GoogleChrome/http2push-gae

lib/http2push

Lines changed: 0 additions & 1 deletion
This file was deleted.

server.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import json
2222

2323
from google.appengine.api import memcache
24-
import http2push.http2push as http2push
2524

2625

2726
jinja_loader = jinja2.FileSystemLoader(os.path.dirname(__file__))
@@ -131,13 +130,13 @@ def handle_500(req, resp, data, e):
131130
render(resp, '/500.html', data)
132131

133132

134-
class SearchHandler(http2push.PushHandler):
133+
class SearchHandler(webapp2.RequestHandler):
135134

136135
def get(self):
137136
self.redirect(str('https://www.google.com/search?q=site%3Apolymer-project.org+' + self.request.get('q')))
138137

139138

140-
class Site(http2push.PushHandler):
139+
class Site(webapp2.RequestHandler):
141140

142141
def redirect_if_needed(self, path):
143142
redirect_cache = MEMCACHE_PREFIX + REDIRECTS_FILE
@@ -217,7 +216,6 @@ def get_active_article(self, articles, path):
217216
return article
218217
return None
219218

220-
@http2push.push()
221219
def get(self, path):
222220
if self.redirect_if_needed(self.request.path):
223221
return

0 commit comments

Comments
 (0)