Skip to content

Commit 111cdfa

Browse files
authored
Merge pull request #1239 from NASA-IMPACT/CarsonDavis-patch-1
remove unused getParameterByName in delta_url_list.js
2 parents c77892a + 90ae575 commit 111cdfa

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

sde_indexing_helper/static/js/delta_url_list.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,16 +1871,6 @@ function getCollectionId() {
18711871
return collection_id;
18721872
}
18731873

1874-
function getParameterByName(name, url) {
1875-
if (!url) url = window.location.href;
1876-
name = name.replace(/[\[\]]/g, "\\$&");
1877-
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
1878-
results = regex.exec(url);
1879-
if (!results) return null;
1880-
if (!results[2]) return "";
1881-
return decodeURIComponent(results[2].replace(/\+/g, " "));
1882-
}
1883-
18841874
function remove_protocol(url) {
18851875
return url.replace(/(^\w+:|^)\/\//, "");
18861876
}

0 commit comments

Comments
 (0)