Skip to content

Commit

Permalink
remove some debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
saivert committed Dec 20, 2023
1 parent 9f5fb18 commit 45a23e3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/pwdeviceobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,6 @@ impl PwDeviceObject {

pub(crate) fn update_profiles(&self) {
let device = self.wpdevice();
let deviceid = device.object_id().expect("device id");

let infomsg = format!(
"Listing profiles for device #{deviceid} {}",
device
.pw_property::<String>("device.nick")
.expect("device.nick")
);

device.enum_params(Some("EnumProfile"), None, gtk::gio::Cancellable::NONE,
clone!(@weak self as widget => move |res| {
Expand All @@ -162,9 +154,6 @@ impl PwDeviceObject {
let description_key = keys.find_value_from_short_name("description").expect("decription key");

if let Ok(Some(iter)) = res {

wp::log::info!("{infomsg}");

let removed = widget.imp().profiles.borrow().len();

let inserted = {
Expand All @@ -181,8 +170,6 @@ impl PwDeviceObject {
let description = pod.find_spa_property(&description_key).expect("Format!").string().expect("String");

profiles.insert(index as u32, description.to_string());

wp::log::info!("Got profile #{} {}", index, description);
}

profiles.len()
Expand Down

0 comments on commit 45a23e3

Please sign in to comment.