diff --git a/core/src/main/java/com/datastrato/gravitino/GravitinoEnv.java b/core/src/main/java/com/datastrato/gravitino/GravitinoEnv.java index a2c9b710a1e..326e75f721a 100644 --- a/core/src/main/java/com/datastrato/gravitino/GravitinoEnv.java +++ b/core/src/main/java/com/datastrato/gravitino/GravitinoEnv.java @@ -40,7 +40,6 @@ import com.datastrato.gravitino.metrics.source.JVMMetricsSource; import com.datastrato.gravitino.storage.IdGenerator; import com.datastrato.gravitino.storage.RandomIdGenerator; -import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -98,18 +97,6 @@ public static GravitinoEnv getInstance() { return InstanceHolder.INSTANCE; } - /** - * This method is used for testing purposes only to set the lock manager for test in package as - * tree lock depends on the lock manager and we did not mock the lock manager in the test, so we - * need to set the lock manager for test. - * - * @param lockManager The lock manager to be set. - */ - @VisibleForTesting - public void setLockManager(LockManager lockManager) { - this.lockManager = lockManager; - } - /** * Initialize the Gravitino environment. *