From 21ccb5e264ba26a80abedf0be32270de0e8ff75f Mon Sep 17 00:00:00 2001 From: Chun-Min Chang Date: Wed, 1 May 2019 16:10:05 -0700 Subject: [PATCH] Remove the unnecessary comments --- src/backend/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backend/mod.rs b/src/backend/mod.rs index 6994e3f..609b19b 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -933,7 +933,7 @@ fn audiounit_get_sub_devices(device_id: AudioDeviceID) -> Vec { mElement: kAudioObjectPropertyElementMaster, }; let mut size: usize = 0; - let mut rv = audio_object_get_property_data_size(device_id, &property_address, &mut size); + let rv = audio_object_get_property_data_size(device_id, &property_address, &mut size); // NOTE: Hit this if `device_id` is not an aggregate device! if rv != NO_ERR { @@ -945,9 +945,7 @@ fn audiounit_get_sub_devices(device_id: AudioDeviceID) -> Vec { let count = size / mem::size_of::(); sub_devices = allocate_array(count); - // assert_eq!(count, sub_devices.len()); - // assert_eq!(size, sub_devices.len() * mem::size_of::()); - rv = audio_object_get_property_data( + let rv = audio_object_get_property_data( device_id, &property_address, &mut size,