From 70726c83594166e5357656948bd0aa08f4fb9890 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 17 Dec 2015 17:22:20 +0100 Subject: [PATCH] Remove dead code --- pgweb/downloads/views.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pgweb/downloads/views.py b/pgweb/downloads/views.py index e46c48b5..50f92110 100644 --- 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 -- 2.39.5