diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 919177e33..dc903777c 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -562,32 +562,6 @@ load pinpad dynamically only after you know that it will be needed */ }); }; - // STORAGE - var getPadTitle = common.getPadTitle = function (cb) { - var href = window.location.href; - var parsed = parsePadUrl(window.location.href); - var hashSlice = window.location.hash.slice(1,9); // TODO remove - var title = ''; - - getRecentPads(function (err, pads) { - if (err) { - cb(err); - return; - } - pads.some(function (pad) { - var p = parsePadUrl(pad.href); - if (p.hash === parsed.hash && p.type === parsed.type) { - title = pad.title || hashSlice; - return true; - } - }); - - if (title === '') { title = getDefaultName(parsed, pads); } - - cb(void 0, title); - }); - }; - var errorHandlers = []; common.onError = function (h) { if (typeof h !== "function") { return; } diff --git a/www/poll/main.js b/www/poll/main.js index b474d41f2..acd4d0af2 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -781,15 +781,6 @@ define([ } Cryptpad.onDisplayNameChanged(setName); - - Cryptpad.getPadTitle(function (err, title) { - if (err) { - error(err); - debug("Couldn't get pad title"); - return; - } - updateTitle(title || defaultName); - }); }; // don't initialize until the store is ready.