Skip to content

Commit 6718273

Browse files
theparthshuklargaudin
authored andcommitted
Remove unused functions
1 parent 5ad226a commit 6718273

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

gutenbergtozim/templates/js/tools.js

-44
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,6 @@ var persist_options = {
1212
debug: true,
1313
};
1414

15-
16-
/*function queryParams(key) {
17-
var qd = {};
18-
if (location.search) location.search.substr(1).split("&").forEach(function(item) {
19-
var s = item.split("="),
20-
k = s[0],
21-
v = s[1] && decodeURIComponent(s[1]);
22-
(qd[k] = qd[k] || []).push(v)
23-
})
24-
if (key == undefined)
25-
return qd;
26-
else
27-
return qd[key];
28-
}*/
29-
3015
function getPersistedPage() {
3116
var pp = $("#page_record").val();
3217
try {
@@ -40,19 +25,6 @@ function getPersistedPage() {
4025
}
4126
}
4227

43-
/*function getRequestedPage() {
44-
var qp = queryParams("page");
45-
try {
46-
return parseInt(qp) - 1;
47-
} catch (e) {
48-
if (qp) {
49-
console.log(e);
50-
console.warn("Unable to work with requested page `" + qp + "`");
51-
}
52-
return 0;
53-
}
54-
}*/
55-
5628
function onTablePageChange(e, settings, table) {
5729
// record global ref to table
5830
if (table)
@@ -67,25 +39,13 @@ function goToAuthor(name) {
6739
showBooks();
6840
}
6941

70-
/*function goToTitle(title) {
71-
$("#title_filter").val(title);
72-
}*/
73-
74-
7542
function minimizeUI() {
7643
console.log("minimizeUI");
7744
$("#hide-precontent").val("true");
7845
$("#hide-precontent").change();
7946
$(".precontent").slideUp(300);
8047
}
8148

82-
/*function maximizeUI() {
83-
console.log("maximizeUI");
84-
$("#hide-precontent").val("");
85-
$("#hide-precontent").change();
86-
$(".precontent").slideDown(300);
87-
}*/
88-
8949
function loadScript(url, nodeId, callback) {
9050
console.log("requesting script for #" + nodeId + " from " + url);
9151
if (document.getElementById(nodeId)) {
@@ -196,10 +156,6 @@ function is_cover_page() {
196156
return $("body").hasClass("cover");
197157
}
198158

199-
/*function is_bookshelf_page() {
200-
return $("body").hasClass("individual_book_shelf");
201-
}*/
202-
203159
function is_bookshelves_page() {
204160
return $('#bookshelvesDisplay').length != 0;
205161
}

0 commit comments

Comments
 (0)