]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Constants and signals are not lockable
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 25 Apr 2018 15:43:44 +0000 (17:43 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 25 Apr 2018 17:51:14 +0000 (19:51 +0200)
vala/valaconstant.vala
vala/valasignal.vala

index e50951b454e1e2c317dabfd92ae1f9dc9e21405c..0a9266cf178f701560096bb003f6abc93b2fa0d3 100644 (file)
@@ -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;
index 1597a1fa9aef3bffd6a5c4733f8ed3dd869a5377..9e971b6f8edd44584ed729acdcac443da977c7aa 100644 (file)
@@ -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;