Skip to content

Commit

Permalink
[Pass a UsingReaddirplusSyscallCacheEvent over the EventBus.]
Browse files Browse the repository at this point in the history
Replace unnecessary access to `SyscallCache` delegates, unbreaking encapsulation.

PiperOrigin-RevId: 493598920
Change-Id: I4232d184e16d8da6bd876125f63bcb8ec25f4a2f
  • Loading branch information
justinhorvitz authored and copybara-github committed Dec 7, 2022
1 parent 2647bcc commit 47cc11f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,4 @@ public void noteAnalysisPhaseEnded() {
public void clear() {
delegate.clear();
}

/** Returns the delegate {@link SyscallCache}. */
public SyscallCache getDelegate() {
return delegate;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ public void clear() {
delegate.clear();
}

/** Returns the underlying {@link SyscallCache} used for eligible paths. */
// TODO(b/245929310): This shouldn't be exposed.
public SyscallCache getUnderlyingCache() {
return delegate;
}

private SyscallCache delegateFor(Path path) {
return path.getFileSystem().equals(fs) ? delegate : SyscallCache.NO_CACHE;
}
Expand Down

0 comments on commit 47cc11f

Please sign in to comment.