mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
ace: Delete dead code
This commit is contained in:
parent
5283bfc14a
commit
cc688f7367
3 changed files with 0 additions and 37 deletions
|
@ -50,8 +50,6 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
const FORMATTING_STYLES = ['bold', 'italic', 'underline', 'strikethrough'];
|
||||
const SELECT_BUTTON_CLASS = 'selected';
|
||||
|
||||
const caughtErrors = [];
|
||||
|
||||
let thisAuthor = '';
|
||||
|
||||
let disposed = false;
|
||||
|
@ -375,13 +373,6 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
});
|
||||
|
||||
cleanExit = true;
|
||||
} catch (e) {
|
||||
caughtErrors.push(
|
||||
{
|
||||
error: e,
|
||||
time: +new Date(),
|
||||
});
|
||||
throw e;
|
||||
} finally {
|
||||
const cs = currentCallStack;
|
||||
if (cleanExit) {
|
||||
|
@ -695,28 +686,9 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
editorInfo.ace_setAuthorInfo = (author, info) => {
|
||||
setAuthorInfo(author, info);
|
||||
};
|
||||
editorInfo.ace_setAuthorSelectionRange = (author, start, end) => {
|
||||
changesetTracker.setAuthorSelectionRange(author, start, end);
|
||||
};
|
||||
|
||||
editorInfo.ace_getUnhandledErrors = () => caughtErrors.slice();
|
||||
|
||||
editorInfo.ace_getDocument = () => document;
|
||||
|
||||
editorInfo.ace_getDebugProperty = (prop) => {
|
||||
if (prop === 'debugger') {
|
||||
// obfuscate "eval" so as not to scare yuicompressor
|
||||
window['ev' + 'al']('debugger');
|
||||
} else if (prop === 'rep') {
|
||||
return rep;
|
||||
} else if (prop === 'window') {
|
||||
return window;
|
||||
} else if (prop === 'document') {
|
||||
return document;
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
const now = () => Date.now();
|
||||
|
||||
const newTimeLimit = (ms) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue