Skip to content

Commit e69a9de

Browse files
committed
ref: dropped unused methods and variables
1 parent 8343d16 commit e69a9de

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

plugin/src/main/java/studio/o7/octopus/plugin/OctopusPlugin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
public final class OctopusPlugin extends JavaPlugin implements PluginInstance {
1111

1212
private OctopusImpl octopus;
13-
private String token;
1413

1514
public OctopusPlugin() {
1615
Unsafe.setInstance(this);

plugin/src/main/java/studio/o7/octopus/plugin/channel/OctopusChannelFactory.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,4 @@ public static void shutdown() {
4343
c.shutdown();
4444
channel = null;
4545
}
46-
47-
private static String firstNonEmpty(String a, String b, String fallback) {
48-
if (a != null && !a.isBlank()) return a;
49-
if (b != null && !b.isBlank()) return b;
50-
return fallback;
51-
}
52-
53-
private static int parseIntOrDefault(String s) {
54-
if (s == null || s.isBlank()) return 50051;
55-
try { return Integer.parseInt(s.trim()); }
56-
catch (Exception ignored) { return 50051; }
57-
}
5846
}

0 commit comments

Comments
 (0)