Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jerqi committed Jun 11, 2024
1 parent b5d5cd2 commit f39720a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions core/src/main/java/com/datastrato/gravitino/GravitinoEnv.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit f39720a

Please sign in to comment.