projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e88530
)
Remove dead code
author
Magnus Hagander
<magnus@hagander.net>
Thu, 17 Dec 2015 16:22:20 +0000
(17:22 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Thu, 17 Dec 2015 16:34:31 +0000
(17:34 +0100)
pgweb/downloads/views.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/downloads/views.py
b/pgweb/downloads/views.py
index e46c48b576639d85fdaa1eb12af1734f22166556..50f9211069586bfc89380f225d607e01bdc66a47 100644
(file)
--- a/
pgweb/downloads/views.py
+++ b/
pgweb/downloads/views.py
@@
-88,14
+88,6
@@
def ftpbrowser(request, subpath):
'maintainer': file_maintainer,
}, NavContext(request, 'download'))
-def _get_numeric_ip(request):
- try:
- ip = get_client_ip(request)
- p = ip.split('.')
- return int(p[0])*16777216 + int(p[1])*65536 + int(p[2])*256 + int(p[3])
- except:
- return None
-
# Accept an upload of the ftpsite pickle. This is fairly resource consuming,
# and not very optimized, but that's why we limit it so that only the ftp