[vala/0.36] vala: Remove superfluous return_if_fail()



commit b34e8e656188ee9024a977284350aae46e6b944e
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 a6c56c682..5e4bcf5b1 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -200,8 +200,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]