# HG changeset patch # User Mads Kiilerich # Date 2015-07-31 15:44:07 # Node ID cd64e53de17b58a86bd92a8624ac6bb08da88912 # Parent b580691553f552c91b74f532d8009a06daebb884 js: drop unused pyroutes_map.js diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -137,8 +137,7 @@ if (!Array.prototype.filter) * Usage pyroutes.url('mark_error_fixed',{"error_id":error_id}) // /mark_error_fixed/ */ 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(); diff --git a/kallithea/public/js/pyroutes_map.js b/kallithea/public/js/pyroutes_map.js deleted file mode 100644 --- a/kallithea/public/js/pyroutes_map.js +++ /dev/null @@ -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 diff --git a/kallithea/templates/base/root.html b/kallithea/templates/base/root.html --- a/kallithea/templates/base/root.html +++ b/kallithea/templates/base/root.html @@ -65,7 +65,6 @@ - ## EXTRA FOR JS <%block name="js_extra"/>