diff --git a/shell/src/main/java/org/apache/zeppelin/shell/terminal/service/TerminalService.java b/shell/src/main/java/org/apache/zeppelin/shell/terminal/service/TerminalService.java index f7d3c13f9d0..41483e84bcf 100644 --- a/shell/src/main/java/org/apache/zeppelin/shell/terminal/service/TerminalService.java +++ b/shell/src/main/java/org/apache/zeppelin/shell/terminal/service/TerminalService.java @@ -50,10 +50,6 @@ public class TerminalService { private LinkedBlockingQueue commandQueue = new LinkedBlockingQueue<>(); - public void onTerminalInit() { - LOGGER.info("onTerminalInit"); - } - public void onTerminalReady() { TerminalService.startThread(() -> { try { diff --git a/shell/src/main/java/org/apache/zeppelin/shell/terminal/websocket/TerminalSocket.java b/shell/src/main/java/org/apache/zeppelin/shell/terminal/websocket/TerminalSocket.java index 64ce0355d45..4f63f1f9ad7 100644 --- a/shell/src/main/java/org/apache/zeppelin/shell/terminal/websocket/TerminalSocket.java +++ b/shell/src/main/java/org/apache/zeppelin/shell/terminal/websocket/TerminalSocket.java @@ -64,12 +64,6 @@ public void onWebSocketText(String message) { if (messageMap.containsKey("type")) { String type = messageMap.get("type"); switch (type) { - case "TERMINAL_INIT": - terminalService.onTerminalInit(); - this.noteId = messageMap.get("noteId"); - this.paragraphId = messageMap.get("paragraphId"); - terminalManager.onWebSocketConnect(noteId, paragraphId); - break; case "TERMINAL_READY": terminalService.onTerminalReady(); this.noteId = messageMap.get("noteId"); diff --git a/shell/src/main/resources/html/js/index.js b/shell/src/main/resources/html/js/index.js index 0a6b3f42243..f9cc7b7c785 100644 --- a/shell/src/main/resources/html/js/index.js +++ b/shell/src/main/resources/html/js/index.js @@ -46,12 +46,6 @@ function action(type, data) { } let app = { - onTerminalInit() { - // alert("TERMINAL_INIT"); - ws.send(action("TERMINAL_INIT", { - noteId, paragraphId - })); - }, onCommand(command) { ws.send(action("TERMINAL_COMMAND", { command @@ -78,8 +72,6 @@ function setupHterm() { t = new hterm.Terminal(); t.onTerminalReady = function() { - // app.onTerminalInit(); - // Create a new terminal IO object and give it the foreground. // (The default IO object just prints warning messages about unhandled // things to the the JS console.)