From 6ee61de1e0c298ded27406253adaef6998398b14 Mon Sep 17 00:00:00 2001 From: Nicolai Syvertsen Date: Sat, 23 Dec 2023 16:29:04 +0100 Subject: [PATCH] Cleanup --- src/backend/pwnodeobject/mixerapi.rs | 1 - src/ui/volumebox.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/backend/pwnodeobject/mixerapi.rs b/src/backend/pwnodeobject/mixerapi.rs index 209b30a..1c4f7fb 100644 --- a/src/backend/pwnodeobject/mixerapi.rs +++ b/src/backend/pwnodeobject/mixerapi.rs @@ -3,7 +3,6 @@ use std::collections::HashMap; use glib::{subclass::types::ObjectSubclassIsExt, ObjectExt, ToVariant, closure_local}; -use gtk::prelude::ListModelExt; use wireplumber as wp; use wp::pw::ProxyExt; diff --git a/src/ui/volumebox.rs b/src/ui/volumebox.rs index 5b31d35..852b7c8 100644 --- a/src/ui/volumebox.rs +++ b/src/ui/volumebox.rs @@ -175,8 +175,6 @@ mod imp { defaultnodesapi_closure.invoke::<()>(&[&defaultnodesapi]); defaultnodesapi.connect_closure("changed", false, defaultnodesapi_closure); - //let channelmodel = self.channelmodel.get().expect("channel model"); - self.channel_listbox.bind_model( Some(&item.channelmodel()), clone!(@weak self as widget => @default-panic, move |item| {