[vala/staging] vala: Constants and signals are not lockable
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Constants and signals are not lockable
- Date: Wed, 25 Apr 2018 17:23:25 +0000 (UTC)
commit 8401c59fcbbf627622c606ad0be7e819ad8dcd90
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Apr 25 17:43:44 2018 +0200
vala: Constants and signals are not lockable
vala/valaconstant.vala | 12 +-----------
vala/valasignal.vala | 12 +-----------
2 files changed, 2 insertions(+), 22 deletions(-)
---
diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala
index e50951b..0a9266c 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 1597a1f..9e971b6 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]