From 0c5b5e28b564013c9978ea59fc9b4fd0e99214f6 Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 4 Aug 2018 12:25:49 -0500 Subject: [PATCH] utility.js: remove unused get_url_parameter function. Unused since 025d66a6. --- app/javascript/src/javascripts/utility.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/app/javascript/src/javascripts/utility.js b/app/javascript/src/javascripts/utility.js index 6f4994a31..bfb9ad272 100644 --- a/app/javascript/src/javascripts/utility.js +++ b/app/javascript/src/javascripts/utility.js @@ -114,21 +114,6 @@ Utility.regexp_escape = function(string) { return string.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"); } -Utility.get_url_parameter = function(sParam) { - var sPageURL = decodeURIComponent(window.location.search.substring(1)), - sURLVariables = sPageURL.split('&'), - sParameterName, - i; - - for (i = 0; i < sURLVariables.length; i++) { - sParameterName = sURLVariables[i].split('='); - - if (sParameterName[0] === sParam) { - return sParameterName[1] === undefined ? true : sParameterName[1]; - } - } -}; - Utility.sorttable = function(table) { table.stupidtable(); table.bind("aftertablesort", function(event, data) { @@ -182,4 +167,4 @@ $(function() { }) }); -export default Utility \ No newline at end of file +export default Utility