remove more unused functions
This commit is contained in:
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…
x
Reference in New Issue
Block a user