From e3b7be0e17f41a1f817ad2a35beb54e1ed10f483 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sun, 12 Dec 2021 18:47:53 +0100 Subject: [PATCH] vala: Drop duplicate check for unsupported flag of creation methods --- vala/valacreationmethod.vala | 6 ------ 1 file changed, 6 deletions(-) diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala index b64703634..2ff5033bc 100644 --- a/vala/valacreationmethod.vala +++ b/vala/valacreationmethod.vala @@ -217,12 +217,6 @@ public class Vala.CreationMethod : Method { context.analyzer.current_source_file = old_source_file; context.analyzer.current_symbol = old_symbol; - if (is_abstract || is_virtual || overrides) { - error = true; - Report.error (source_reference, "The creation method `%s' cannot be marked as override, virtual, or abstract", get_full_name ()); - return false; - } - // check that all errors that can be thrown in the method body are declared if (body != null && !body.error) { var body_errors = new ArrayList (); -- 2.47.2