From 1fdaf95c3b1fbbd711511b686f25db6e4fbfb7a8 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 29 Mar 2021 03:09:47 -0400 Subject: [PATCH] collab_client: Delete unused `NO_COMMIT_PENDING` handling --- src/static/js/collab_client.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/static/js/collab_client.js b/src/static/js/collab_client.js index a9c289ee3..4b6c3ffcf 100644 --- a/src/static/js/collab_client.js +++ b/src/static/js/collab_client.js @@ -241,12 +241,6 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, options, _pad) setIsPendingRevision(false); } }); - } else if (msg.type === 'NO_COMMIT_PENDING') { - if (committing) { - // server missed our commit message; abort that commit - setStateIdle(); - handleUserChanges(); - } } else if (msg.type === 'USER_NEWINFO') { const userInfo = msg.userInfo; const id = userInfo.userId;