Skip to content

Commit a800f68

Browse files
committed
Remove unnecessary public getFromStack method
The getFromStack() method was made public with @VisibleForTesting but was never actually used in our tests or implementation. The CallStack.size() method is the one that's actually needed and used via getCurrentPathStack().size(). This keeps the API surface minimal and only exposes what's necessary.
1 parent 0d9a205 commit a800f68

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/hubspot/jinjava/interpret/Context.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.hubspot.jinjava.interpret;
1818

1919
import com.google.common.annotations.Beta;
20-
import com.google.common.annotations.VisibleForTesting;
2120
import com.google.common.collect.HashMultimap;
2221
import com.google.common.collect.ImmutableSet;
2322
import com.google.common.collect.SetMultimap;
@@ -682,8 +681,7 @@ public CallStack getIncludePathStack() {
682681
return includePathStack;
683682
}
684683

685-
@VisibleForTesting
686-
public CallStack getFromStack() {
684+
private CallStack getFromStack() {
687685
return fromStack;
688686
}
689687

0 commit comments

Comments
 (0)