From 0827fe17d49802d5bf447020387f3f7de30170fc Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Wed, 31 Jan 2018 09:31:38 +0100 Subject: [PATCH] Don't system.out spam --- build.gradle | 2 +- .../java/com/mojang/brigadier/tree/CommandNode.java | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/build.gradle b/build.gradle index b06823e..2290827 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ import groovy.io.FileType apply plugin: 'java-library' apply plugin: 'maven' -version = '0.1.21' +version = '0.1.22' group = 'com.mojang' task wrapper(type: Wrapper) { diff --git a/src/main/java/com/mojang/brigadier/tree/CommandNode.java b/src/main/java/com/mojang/brigadier/tree/CommandNode.java index 2347716..0099c31 100644 --- a/src/main/java/com/mojang/brigadier/tree/CommandNode.java +++ b/src/main/java/com/mojang/brigadier/tree/CommandNode.java @@ -80,18 +80,6 @@ public abstract class CommandNode implements Comparable> { child.addChild(grandchild); } } else { - for (final CommandNode sibling : children.values()) { - for (final String example : node.getExamples()) { - if (sibling.isValidInput(example)) { - System.out.println("Ambiguity detected in " + getName() + ", siblings " + sibling.getName() + " and " + node.getName() + " can both parse '" + example + "' successfully"); - } - } - for (final String example : sibling.getExamples()) { - if (node.isValidInput(example)) { - System.out.println("Ambiguity detected in " + getName() + ", siblings " + sibling.getName() + " and " + node.getName() + " can both parse '" + example + "' successfully"); - } - } - } children.put(node.getName(), node); if (node instanceof LiteralCommandNode) { literals.put(node.getName(), (LiteralCommandNode) node);