Skip to content

Commit 75413e1

Browse files
committed
Remove unused code.
1 parent 4a045ae commit 75413e1

File tree

5 files changed

+0
-15
lines changed

5 files changed

+0
-15
lines changed

src/ui/channelbox.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ mod imp {
3030

3131
fn class_init(klass: &mut Self::Class) {
3232
klass.bind_template();
33-
klass.bind_template_callbacks();
3433
}
3534

3635
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {
@@ -63,7 +62,6 @@ mod imp {
6362
impl WidgetImpl for PwChannelBox {}
6463
impl ListBoxRowImpl for PwChannelBox {}
6564

66-
#[gtk::template_callbacks]
6765
impl PwChannelBox {}
6866
}
6967

src/ui/devicebox.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ mod imp {
3030

3131
fn class_init(klass: &mut Self::Class) {
3232
klass.bind_template();
33-
klass.bind_template_callbacks();
3433
}
3534

3635
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {
@@ -63,7 +62,6 @@ mod imp {
6362
impl WidgetImpl for PwDeviceBox {}
6463
impl ListBoxRowImpl for PwDeviceBox {}
6564

66-
#[gtk::template_callbacks]
6765
impl PwDeviceBox {}
6866
}
6967

src/ui/stream_dropdown.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ mod imp {
3737

3838
fn class_init(klass: &mut Self::Class) {
3939
klass.bind_template();
40-
klass.bind_template_callbacks();
4140
}
4241

4342
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {
4443
obj.init_template();
4544
}
4645
}
4746

48-
#[gtk::template_callbacks]
4947
impl PwStreamDropDown {
5048
fn set_nodeobj(&self, nodeobj: Option<&PwNodeObject>) {
5149
let manager = PwvucontrolManager::default();

src/ui/volumebox.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ mod imp {
6464

6565
fn class_init(klass: &mut Self::Class) {
6666
klass.bind_template();
67-
klass.bind_template_callbacks();
6867
}
6968

7069
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {
@@ -216,13 +215,7 @@ mod imp {
216215
}
217216
}
218217

219-
#[gtk::template_callbacks]
220218
impl PwVolumeBox {
221-
#[template_callback]
222-
fn invert_bool(&self, value: bool) -> bool {
223-
!value
224-
}
225-
226219
fn setuplevelbar(&self) {
227220
let item = self.node_object.borrow();
228221
let item = item.as_ref().cloned().unwrap();

src/ui/window.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ mod imp {
7474
PwVolumeBox::ensure_type();
7575

7676
klass.bind_template();
77-
klass.bind_template_callbacks();
7877
}
7978

8079
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {
@@ -198,7 +197,6 @@ mod imp {
198197
impl ApplicationWindowImpl for PwvucontrolWindow {}
199198
impl AdwApplicationWindowImpl for PwvucontrolWindow {}
200199

201-
#[gtk::template_callbacks]
202200
impl PwvucontrolWindow {}
203201
}
204202

0 commit comments

Comments
 (0)