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

Unified Diff: chrome/browser/storage_monitor/storage_monitor_linux.cc

Issue 67923002: Fixes for -Wunused-function on Linux, Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for realz Created 7 years, 1 month 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
Index: chrome/browser/storage_monitor/storage_monitor_linux.cc
diff --git a/chrome/browser/storage_monitor/storage_monitor_linux.cc b/chrome/browser/storage_monitor/storage_monitor_linux.cc
index 340e479be35f394ba3ed7aed0de977cbe5f1aee0..8717f1799f44e2b6b3d70c580573e6f12ca7fd8b 100644
--- a/chrome/browser/storage_monitor/storage_monitor_linux.cc
+++ b/chrome/browser/storage_monitor/storage_monitor_linux.cc
@@ -111,23 +111,6 @@ uint64 GetDeviceStorageSize(const base::FilePath& device_path,
total_size_in_bytes * 512 : 0;
}
-// Constructs the device name from the device properties. If the device details
-// are unavailable, returns an empty string.
-void GetDeviceName(struct udev_device* device,
- string16* out_volume_label,
- string16* out_vendor_name,
- string16* out_model_name) {
- std::string device_label = GetUdevDevicePropertyValue(device, kLabel);
- std::string vendor_name = GetUdevDevicePropertyValue(device, kVendor);
- std::string model_name = GetUdevDevicePropertyValue(device, kModel);
- if (out_volume_label)
- *out_volume_label = UTF8ToUTF16(device_label);
- if (out_vendor_name)
- *out_vendor_name = UTF8ToUTF16(vendor_name);
- if (out_model_name)
- *out_model_name = UTF8ToUTF16(model_name);
-}
-
// Gets the device information using udev library.
scoped_ptr<StorageInfo> GetDeviceInfo(const base::FilePath& device_path,
const base::FilePath& mount_point) {

Powered by Google App Engine
This is Rietveld 408576698