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

Unified Diff: media/audio/win/audio_device_listener_win.cc

Issue 1261953003: clang/win: Build chromium_code with -Wunused-function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 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 | « build/config/compiler/BUILD.gn ('k') | win8/metro_driver/metro_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_device_listener_win.cc
diff --git a/media/audio/win/audio_device_listener_win.cc b/media/audio/win/audio_device_listener_win.cc
index 4af85a0fb4bc0e4cd4b213c85d398a979bca9d19..505007bae37f74a50fa58d9947a319c138b61d83 100644
--- a/media/audio/win/audio_device_listener_win.cc
+++ b/media/audio/win/audio_device_listener_win.cc
@@ -31,27 +31,6 @@ static std::string RoleToString(ERole role) {
}
}
-static std::string GetDeviceId(EDataFlow flow,
- ERole role) {
- ScopedComPtr<IMMDevice> device =
- CoreAudioUtil::CreateDefaultDevice(flow, role);
- if (!device.get()) {
- // Most probable reason for ending up here is that all audio devices are
- // disabled or unplugged.
- DVLOG(1) << "CoreAudioUtil::CreateDefaultDevice failed. No device?";
- return std::string();
- }
-
- AudioDeviceName device_name;
- HRESULT hr = CoreAudioUtil::GetDeviceName(device.get(), &device_name);
- if (FAILED(hr)) {
- DVLOG(1) << "Failed to retrieve the device id: " << std::hex << hr;
- return std::string();
- }
-
- return device_name.unique_id;
-}
-
AudioDeviceListenerWin::AudioDeviceListenerWin(const base::Closure& listener_cb)
: listener_cb_(listener_cb), tick_clock_(new base::DefaultTickClock()) {
CHECK(CoreAudioUtil::IsSupported());
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | win8/metro_driver/metro_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698