From a4157b9908ec8a65cf9b9461742a2a782c1f82e6 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 14 Apr 2017 12:14:10 +0200 Subject: [PATCH] remove more unused functions --- www/common/cryptpad-common.js | 17 ----------------- 1 file changed, 17 deletions(-) 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;