Skip to content

Commit 879e829

Browse files
authored
HumbleButton: Remove unused allow free (#2408)
1 parent ad62283 commit 879e829

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

src/Widgets/ActionStack.vala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ public class AppCenter.ActionStack : Gtk.Box {
129129
}
130130
}
131131

132-
action_button.allow_free = true;
133-
134132
if (stack.get_child_by_name ("buttons") != null) {
135133
stack.visible_child_name = "buttons";
136134
}
@@ -150,8 +148,6 @@ public class AppCenter.ActionStack : Gtk.Box {
150148
case AppCenterCore.Package.State.INSTALLED:
151149
action_button_revealer.reveal_child = package.should_pay && updates_view;
152150
open_button_revealer.reveal_child = show_open && package.get_can_launch ();
153-
154-
action_button.allow_free = false;
155151
break;
156152
case AppCenterCore.Package.State.UPDATE_AVAILABLE:
157153
action_button.free_string = _("Update");

src/Widgets/HumbleButton.vala

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,6 @@ public class AppCenter.Widgets.HumbleButton : Gtk.Button {
4040

4141
public string free_string;
4242

43-
public bool _allow_free = true;
44-
public bool allow_free {
45-
get {
46-
return _allow_free;
47-
}
48-
set {
49-
if (value != _allow_free) {
50-
_allow_free = value;
51-
}
52-
}
53-
}
54-
5543
public bool can_purchase {
5644
set {
5745
if (!value) {

0 commit comments

Comments
 (0)