From 576629de2fd8f82454b9135ffb3c4720496099d9 Mon Sep 17 00:00:00 2001 From: kifir Date: Fri, 9 Aug 2024 18:14:04 +0300 Subject: [PATCH] only: get rid of unused method --- .../src/main/java/com/rusefi/io/LinkManager.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/java_console/io/src/main/java/com/rusefi/io/LinkManager.java b/java_console/io/src/main/java/com/rusefi/io/LinkManager.java index 5f2de38ff2..5eb7e251b1 100644 --- a/java_console/io/src/main/java/com/rusefi/io/LinkManager.java +++ b/java_console/io/src/main/java/com/rusefi/io/LinkManager.java @@ -329,22 +329,6 @@ public class LinkManager implements Closeable { return null; } - /** - * @return null if no port located - */ - public static String getDefaultPort() { - String[] ports = getCommPorts(); - if (ports.length == 0) { - System.out.println("Port not specified and no ports found"); - return null; - } - String port = ports[ports.length - 1]; - // todo: reuse 'PortDetector.autoDetectPort' here? - System.out.println("Using last of " + ports.length + " port(s)"); - System.out.println("All ports: " + Arrays.toString(ports)); - return port; - } - public interface MessagesListener { void postMessage(Class source, String message); }