remove more unused functions

pull/1/head
ansuz 8 years ago
parent e10901edb2
commit a4157b9908

@ -224,14 +224,6 @@ define([
var isArray = common.isArray = $.isArray; 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 * 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 // Create untitled documents when no name is given
var getDefaultName = common.getDefaultName = function (parsed) { var getDefaultName = common.getDefaultName = function (parsed) {
var type = parsed.type; var type = parsed.type;

Loading…
Cancel
Save