Skip to content

Commit 9b25002

Browse files
committed
remove some no longer used js functions
1 parent 0de4b56 commit 9b25002

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

root/static/js/cpan.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,6 @@ const {
99
createAnchors
1010
} = require('./document-ui.mjs');
1111

12-
// Store global data in this object
13-
var MetaCPAN = {};
14-
15-
$.extend({
16-
getUrlVars: function() {
17-
var vars = {},
18-
hash;
19-
var indexOfQ = window.location.href.indexOf('?');
20-
if (indexOfQ == -1) return vars;
21-
var hashes = window.location.href.slice(indexOfQ + 1).split('&');
22-
$.each(hashes, function(idx, hash) {
23-
var kv = hash.split('=');
24-
vars[kv[0]] = decodeURIComponent(kv[1]);
25-
});
26-
return vars;
27-
},
28-
getUrlVar: function(name) {
29-
return $.getUrlVars()[name];
30-
}
31-
});
32-
33-
3412
function setFavTitle(button) {
3513
button.setAttribute('title', button.classList.contains('active') ? 'Remove from favorites' : 'Add to favorites');
3614
}

0 commit comments

Comments
 (0)