[vala/staging: 5/6] vala: Remove superfluous return_if_fail()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 5/6] vala: Remove superfluous return_if_fail()
- Date: Sat, 17 Nov 2018 16:32:35 +0000 (UTC)
commit 62a5711cee07418c64c15272e5f23c5c13bce390
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 f0b01f0e8..4c6f59bcc 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]