0

Remove XrRuntimeManager::ForEachRuntime.

This was going to be migrated to use base::FunctionRef, but as there are
no callers, just delete it instead.

Change-Id: I2a7c68aaea9b56a395572b73ca2c48ccfd73827e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5051068
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228880}
This commit is contained in:
Daniel Cheng
2023-11-24 21:10:55 +00:00
committed by Chromium LUCI CQ
parent eb021b5db4
commit 784611b9d4
3 changed files with 0 additions and 14 deletions

@ -578,13 +578,6 @@ XRRuntimeManagerImpl::GetXrFrameSinkClientFactory() {
return base::BindRepeating(&FrameSinkClientFactory);
}
void XRRuntimeManagerImpl::ForEachRuntime(
base::RepeatingCallback<void(BrowserXRRuntime*)> fn) {
for (auto& runtime : runtimes_) {
fn.Run(runtime.second.get());
}
}
std::vector<webxr::mojom::RuntimeInfoPtr>
XRRuntimeManagerImpl::GetActiveRuntimes() {
std::vector<webxr::mojom::RuntimeInfoPtr> active_runtimes;

@ -97,8 +97,6 @@ class CONTENT_EXPORT XRRuntimeManagerImpl
// XRRuntimeManager implementation
BrowserXRRuntimeImpl* GetRuntime(device::mojom::XRDeviceId id) override;
void ForEachRuntime(
base::RepeatingCallback<void(BrowserXRRuntime*)> fn) override;
content::WebXrLoggerManager& GetLoggerManager();

@ -49,11 +49,6 @@ class CONTENT_EXPORT XRRuntimeManager {
// XRDeviceId, or nullptr if no such device exists/has been registered.
virtual content::BrowserXRRuntime* GetRuntime(
device::mojom::XRDeviceId id) = 0;
// Provides a mechanism for performing operations on/reasoning about all
// currently active runtimes, without exposing the collection.
virtual void ForEachRuntime(
base::RepeatingCallback<void(content::BrowserXRRuntime*)> fn) = 0;
};
} // namespace content