mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Pad: Delete non-functional debug logging facility
This commit is contained in:
parent
5d39a57507
commit
8d869ec927
7 changed files with 0 additions and 36 deletions
|
@ -26,7 +26,6 @@ const $ = require('./rjquery').$;
|
|||
const isNodeText = Ace2Common.isNodeText;
|
||||
const getAssoc = Ace2Common.getAssoc;
|
||||
const setAssoc = Ace2Common.setAssoc;
|
||||
const htmlPrettyEscape = Ace2Common.htmlPrettyEscape;
|
||||
const noop = Ace2Common.noop;
|
||||
const hooks = require('./pluginfw/hooks');
|
||||
|
||||
|
@ -146,20 +145,12 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
for (let i = 0; i < names.length; ++i) console[names[i]] = noop;
|
||||
}
|
||||
|
||||
// "dmesg" is for displaying messages in the in-page output pane
|
||||
// visible when "?djs=1" is appended to the pad URL. It generally
|
||||
// remains a no-op unless djs is enabled, but we make a habit of
|
||||
// only calling it in error cases or while debugging.
|
||||
let dmesg = noop;
|
||||
window.dmesg = noop;
|
||||
|
||||
const scheduler = parent; // hack for opera required
|
||||
|
||||
const performDocumentReplaceRange = (start, end, newText) => {
|
||||
if (start === undefined) start = rep.selStart;
|
||||
if (end === undefined) end = rep.selEnd;
|
||||
|
||||
// dmesg(String([start.toSource(),end.toSource(),newText.toSource()]));
|
||||
// start[0]: <--- start[1] --->CCCCCCCCCCC\n
|
||||
// CCCCCCCCCCCCCCCCCCCC\n
|
||||
// CCCC\n
|
||||
|
@ -374,7 +365,6 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
error: e,
|
||||
time: +new Date(),
|
||||
});
|
||||
dmesg(e.toString());
|
||||
throw e;
|
||||
} finally {
|
||||
const cs = currentCallStack;
|
||||
|
@ -546,8 +536,6 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
idleWorkTimer.atMost(100);
|
||||
|
||||
if (rep.alltext !== atext.text) {
|
||||
dmesg(htmlPrettyEscape(rep.alltext));
|
||||
dmesg(htmlPrettyEscape(atext.text));
|
||||
throw new Error('mismatch error setting raw text in setDocAText');
|
||||
}
|
||||
};
|
||||
|
@ -653,7 +641,6 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
sideDiv.parentNode.classList.toggle('line-numbers-hidden', !hasLineNumbers);
|
||||
fixView();
|
||||
},
|
||||
dmesg: () => { dmesg = window.dmesg = value; },
|
||||
userauthor: (value) => {
|
||||
thisAuthor = String(value);
|
||||
documentAttributeManager.author = thisAuthor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue