Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1348)

Unified Diff: device/base/device_monitor_linux.cc

Issue 2435673003: Remove unused function DeviceMonitorLinux::GetDeviceFromPath. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/base/device_monitor_linux.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/base/device_monitor_linux.cc
diff --git a/device/base/device_monitor_linux.cc b/device/base/device_monitor_linux.cc
index cc64870b8cf17392507039756fe43eeef33af6ca..2bc8c09a23f2a69807827cee0888a800b6600af4 100644
--- a/device/base/device_monitor_linux.cc
+++ b/device/base/device_monitor_linux.cc
@@ -5,6 +5,7 @@
#include "device/base/device_monitor_linux.h"
#include <memory>
+#include <string>
#include "base/bind.h"
#include "base/lazy_instance.h"
@@ -76,14 +77,6 @@ void DeviceMonitorLinux::RemoveObserver(Observer* observer) {
observers_.RemoveObserver(observer);
}
-ScopedUdevDevicePtr DeviceMonitorLinux::GetDeviceFromPath(
- const std::string& path) {
- DCHECK(thread_checker_.CalledOnValidThread());
- ScopedUdevDevicePtr device(
- udev_device_new_from_syspath(udev_.get(), path.c_str()));
- return device;
-}
-
void DeviceMonitorLinux::Enumerate(const EnumerateCallback& callback) {
DCHECK(thread_checker_.CalledOnValidThread());
ScopedUdevEnumeratePtr enumerate(udev_enumerate_new(udev_.get()));
« no previous file with comments | « device/base/device_monitor_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698