diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java index 690c8c747c1673..da36b1d9996e56 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java @@ -288,10 +288,10 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory, Configur // package twice (first time loading to find load()ed bzl files and declare Skyframe // dependencies). private final Cache packageFunctionCache = - newPkgFunctionCache(); + Caffeine.newBuilder().build(); // Cache of parsed BUILD files, for PackageFunction. Same motivation as above. private final Cache compiledBuildFileCache = - newCompiledBuildFileCache(); + Caffeine.newBuilder().build(); // Cache of parsed bzl files, for use when we're inlining BzlCompileFunction in // BzlLoadFunction. See the comments in BzlLoadFunction for motivations and details. @@ -1197,15 +1197,6 @@ public void injectExtraPrecomputedValues(List extraPr } } - protected Cache newPkgFunctionCache() { - return Caffeine.newBuilder().build(); - } - - protected Cache - newCompiledBuildFileCache() { - return Caffeine.newBuilder().build(); - } - private void setShowLoadingProgress(boolean showLoadingProgressValue) { showLoadingProgress.set(showLoadingProgressValue); }