[collab_client] remove socketid because its not used

pull/2028/head
webzwo0i 2013-12-08 17:20:53 +01:00
parent f25fed1c25
commit 8175af3017
2 changed files with 0 additions and 5 deletions

View File

@ -77,7 +77,6 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
}
var socketId;
//var socket;
var channelState = "DISCONNECTED";

View File

@ -44,7 +44,6 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad)
var state = "IDLE";
var stateMessage;
var stateMessageSocketId;
var channelState = "CONNECTING";
var appLevelDisconnectReason = null;
@ -52,7 +51,6 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad)
var initialStartConnectTime = 0;
var userId = initialUserInfo.userId;
var socketId;
//var socket;
var userSet = {}; // userId -> userInfo
userSet[userId] = initialUserInfo;
@ -196,7 +194,6 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad)
changeset: userChangesData.changeset,
apool: userChangesData.apool
};
stateMessageSocketId = socketId;
sendMessage(stateMessage);
sentMessage = true;
callbacks.onInternalAction("commitPerformed");
@ -593,7 +590,6 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad)
{
obj.committedChangeset = stateMessage.changeset;
obj.committedChangesetAPool = stateMessage.apool;
obj.committedChangesetSocketId = stateMessageSocketId;
editor.applyPreparedChangesetToBase();
}
var userChangesData = editor.prepareUserChangeset();