remove unused funks

This commit is contained in:
James Campos 2011-04-16 19:17:46 -07:00
parent daffd9cd34
commit 715e765da5
2 changed files with 3 additions and 46 deletions

View File

@ -59,7 +59,7 @@
*/
(function() {
var $, $$, NAMESPACE, autoWatch, callback, changeCheckbox, changeValue, config, d, delform, el, expand, expandComment, expandThread, g, imageClick, imageExpand, imageExpandClick, imageHover, imageResize, imageThumb, imageToggle, imageType, imageTypeChange, keybinds, log, nav, navtopr, nodeInserted, option, options, pathname, qr, recaptcha, recaptchaListener, recaptchaReload, redirect, replyHiding, report, scroll, scrollThread, temp, text, threadHiding, tzOffset, ui, updateFavicon, updateTitle, updater, watcher, _config, _i, _j, _k, _len, _len2, _len3, _ref, _ref2, _ref3, _ref4;
var $, $$, NAMESPACE, autoWatch, callback, changeValue, config, d, delform, el, expand, expandComment, expandThread, g, imageClick, imageExpand, imageExpandClick, imageHover, imageResize, imageThumb, imageToggle, imageType, imageTypeChange, keybinds, log, nav, navtopr, nodeInserted, option, options, pathname, qr, recaptcha, recaptchaListener, recaptchaReload, redirect, replyHiding, report, scroll, temp, text, threadHiding, tzOffset, ui, updateFavicon, updateTitle, updater, watcher, _config, _i, _j, _k, _len, _len2, _len3, _ref, _ref2, _ref3, _ref4;
var __slice = Array.prototype.slice;
if (typeof console != "undefined" && console !== null) {
log = console.log;
@ -1560,26 +1560,6 @@
return watcher.addLink(props);
}
};
scrollThread = function(count) {
var hash, idx, temp, thread, top, _ref;
_ref = getThread(), thread = _ref[0], idx = _ref[1];
top = thread.getBoundingClientRect().top;
if (idx === 0 && top > 1) {
idx = -1;
}
if (count < 0 && top < -1) {
count++;
}
temp = idx + count;
if (temp < 0) {
hash = '';
} else if (temp > 9) {
hash = 'p9';
} else {
hash = "p" + temp;
}
return location.hash = hash;
};
nodeInserted = function(e) {
var callback, dialog, target, _i, _len, _ref, _results;
target = e.target;
@ -1693,9 +1673,6 @@
thumb.className = '';
return $.remove(thumb.nextSibling);
};
changeCheckbox = function() {
return GM_setValue(this.name, this.checked);
};
changeValue = function() {
return GM_setValue(this.name, this.value);
};

View File

@ -1235,25 +1235,8 @@ watcher =
watcher.addLink props
# TODO rewrite these
scrollThread = (count) ->
[thread, idx] = getThread()
top = thread.getBoundingClientRect().top
if idx is 0 and top > 1
#we haven't scrolled to the first thread
idx = -1
if count < 0 and top < -1
#we've started scrolling past this thread,
# but now want to read from the beginning
count++
temp = idx + count
if temp < 0
hash = ''
else if temp > 9
hash = 'p9'
else
hash = "p#{temp}"
location.hash = hash
# TODO rewrite these **************************************************************************
nodeInserted = (e) ->
target = e.target
@ -1345,9 +1328,6 @@ imageThumb = (thumb) ->
thumb.className = ''
$.remove thumb.nextSibling
changeCheckbox = ->
GM_setValue @name, @checked
changeValue = ->
GM_setValue @name, @value