summaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2013-12-09 10:49:57 -0800
committerJohn McLear <john@mclear.co.uk>2013-12-09 10:49:57 -0800
commit24e96c4f8bc2b7b72644d0f2e68d8a58726c3cf9 (patch)
tree6217018cbe04d6bef426ce69d6ed0b1ac4f446d7 /src/node
parent438f3fc717e1441698a49196500fc242377f484c (diff)
parent77cf2aafacf859b053ee2d704f6b2ce0d4df5a71 (diff)
downloadetherpad-lite-24e96c4f8bc2b7b72644d0f2e68d8a58726c3cf9.zip
Merge pull request #2028 from webzwo0i/remove-deadcode
Remove deadcode
Diffstat (limited to 'src/node')
-rw-r--r--src/node/handler/PadMessageHandler.js2
-rw-r--r--src/node/utils/padDiff.js16
-rw-r--r--src/node/utils/tar.json1
3 files changed, 0 insertions, 19 deletions
diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js
index 75ec6bd7..748b8382 100644
--- a/src/node/handler/PadMessageHandler.js
+++ b/src/node/handler/PadMessageHandler.js
@@ -1076,7 +1076,6 @@ function handleClientReady(client, message)
"historicalAuthorData": historicalAuthorData,
"apool": apool,
"rev": pad.getHeadRevisionNumber(),
- "globalPadId": message.padId,
"time": currentTime,
},
"colorPalette": authorManager.getColorPalette(),
@@ -1093,7 +1092,6 @@ function handleClientReady(client, message)
"readOnlyId": padIds.readOnlyPadId,
"readonly": padIds.readonly,
"serverTimestamp": new Date().getTime(),
- "globalPadId": message.padId,
"userId": author,
"abiwordAvailable": settings.abiwordAvailable(),
"plugins": {
diff --git a/src/node/utils/padDiff.js b/src/node/utils/padDiff.js
index c5354041..88fa5cba 100644
--- a/src/node/utils/padDiff.js
+++ b/src/node/utils/padDiff.js
@@ -331,14 +331,6 @@ PadDiff.prototype._createDeletionChangeset = function(cs, startAText, apool) {
}
}
- function lines_length() {
- if ((typeof lines.length) == "number") {
- return lines.length;
- } else {
- return lines.length();
- }
- }
-
function alines_get(idx) {
if (alines.get) {
return alines.get(idx);
@@ -347,14 +339,6 @@ PadDiff.prototype._createDeletionChangeset = function(cs, startAText, apool) {
}
}
- function alines_length() {
- if ((typeof alines.length) == "number") {
- return alines.length;
- } else {
- return alines.length();
- }
- }
-
var curLine = 0;
var curChar = 0;
var curLineOpIter = null;
diff --git a/src/node/utils/tar.json b/src/node/utils/tar.json
index b010f851..70001f8f 100644
--- a/src/node/utils/tar.json
+++ b/src/node/utils/tar.json
@@ -46,7 +46,6 @@
, "Changeset.js"
, "ChangesetUtils.js"
, "skiplist.js"
- , "virtual_lines.js"
, "cssmanager.js"
, "colorutils.js"
, "undomodule.js"