[vala/0.42] vala: Remove superfluous return_if_fail()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] vala: Remove superfluous return_if_fail()
- Date: Mon, 26 Nov 2018 09:13:48 +0000 (UTC)
commit 87dccea76dbd20c6668c12d115aad582c4cec5e9
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Nov 17 13:51:14 2018 +0100
vala: Remove superfluous return_if_fail()
vala/valastruct.vala | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index 4100b4b73..588b38d6c 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -232,8 +232,6 @@ public class Vala.Struct : TypeSymbol {
* @param m a method
*/
public override void add_method (Method m) {
- return_if_fail (m != null);
-
if (m.binding == MemberBinding.INSTANCE || m is CreationMethod) {
m.this_parameter = new Parameter ("this", SemanticAnalyzer.get_data_type_for_symbol
(this));
m.scope.add (m.this_parameter.name, m.this_parameter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]