From: Rico Tzschichholz Date: Wed, 25 Apr 2018 15:43:44 +0000 (+0200) Subject: vala: Constants and signals are not lockable X-Git-Tag: 0.41.90~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12861326fc4d2a5ab840f7868505bc24feb87332;p=thirdparty%2Fvala.git vala: Constants and signals are not lockable --- diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala index e50951b45..0a9266cf1 100644 --- a/vala/valaconstant.vala +++ b/vala/valaconstant.vala @@ -25,7 +25,7 @@ using GLib; /** * Represents a type member with a constant value. */ -public class Vala.Constant : Symbol, Lockable { +public class Vala.Constant : Symbol { /** * The data type of this constant. */ @@ -50,8 +50,6 @@ public class Vala.Constant : Symbol, Lockable { } } - private bool lock_used = false; - private DataType _data_type; private Expression _value; @@ -85,14 +83,6 @@ public class Vala.Constant : Symbol, Lockable { } } - public bool get_lock_used () { - return lock_used; - } - - public void set_lock_used (bool used) { - lock_used = used; - } - public override void replace_expression (Expression old_node, Expression new_node) { if (value == old_node) { value = new_node; diff --git a/vala/valasignal.vala b/vala/valasignal.vala index 1597a1fa9..9e971b6f8 100644 --- a/vala/valasignal.vala +++ b/vala/valasignal.vala @@ -25,7 +25,7 @@ using GLib; /** * Represents an object signal. Signals enable objects to provide notifications. */ -public class Vala.Signal : Symbol, Lockable, Callable { +public class Vala.Signal : Symbol, Callable { /** * The return type of handlers of this signal. */ @@ -65,8 +65,6 @@ public class Vala.Signal : Symbol, Lockable, Callable { * */ public Method emitter { get; private set; } - private bool lock_used = false; - private DataType _return_type; private Block _body; @@ -170,14 +168,6 @@ public class Vala.Signal : Symbol, Lockable, Callable { } } - public bool get_lock_used () { - return lock_used; - } - - public void set_lock_used (bool used) { - lock_used = used; - } - public override void replace_type (DataType old_type, DataType new_type) { if (return_type == old_type) { return_type = new_type;