diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 75f7dad2d..68d5204fb 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -224,14 +224,6 @@ define([ var isArray = common.isArray = $.isArray; - var truncate = common.truncate = function (text, len) { - if (typeof(text) === 'string' && text.length > len) { - return text.slice(0, len) + '…'; - } - return text; - }; - - /* * localStorage formatting */ @@ -313,15 +305,6 @@ define([ }); }; - var isNameAvailable = function (title, parsed, pads) { - return !pads.some(function (pad) { - // another pad is already using that title - if (pad.title === title) { - return true; - } - }); - }; - // Create untitled documents when no name is given var getDefaultName = common.getDefaultName = function (parsed) { var type = parsed.type;