Mercurial > kallithea
changeset 5329:cd64e53de17b
js: drop unused pyroutes_map.js
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 31 Jul 2015 15:44:07 +0200 |
parents | b580691553f5 |
children | 40871e0eb13a |
files | kallithea/public/js/base.js kallithea/public/js/pyroutes_map.js kallithea/templates/base/root.html |
diffstat | 3 files changed, 1 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/public/js/base.js Sun Jul 26 14:10:44 2015 +0200 +++ b/kallithea/public/js/base.js Fri Jul 31 15:44:07 2015 +0200 @@ -137,8 +137,7 @@ * Usage pyroutes.url('mark_error_fixed',{"error_id":error_id}) // /mark_error_fixed/<error_id> */ var pyroutes = (function() { - // access global map defined in special file pyroutes - var matchlist = PROUTES_MAP; + var matchlist = {}; var sprintf = (function() { function get_type(variable) { return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();
--- a/kallithea/public/js/pyroutes_map.js Sun Jul 26 14:10:44 2015 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -//Format is key == name -// "mark_error_fixed": [ # key -// "/mark_error_fixed/%(error_id)s", #url template -// [ -// "error_id" # list of args -// ] -// ], -// -var PROUTES_MAP = { - -} \ No newline at end of file
--- a/kallithea/templates/base/root.html Sun Jul 26 14:10:44 2015 +0200 +++ b/kallithea/templates/base/root.html Fri Jul 31 15:44:07 2015 +0200 @@ -65,7 +65,6 @@ <script type="text/javascript" src="${h.url('/js/mousetrap.js', ver=c.kallithea_version)}"></script> <script type="text/javascript" src="${h.url('/js/yui.flot.js', ver=c.kallithea_version)}"></script> <script type="text/javascript" src="${h.url('/js/native.history.js', ver=c.kallithea_version)}"></script> - <script type="text/javascript" src="${h.url('/js/pyroutes_map.js', ver=c.kallithea_version)}"></script> <script type="text/javascript" src="${h.url('/js/base.js', ver=c.kallithea_version)}"></script> ## EXTRA FOR JS <%block name="js_extra"/>