]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Rely on DataType.to_qualified_string() implementation for error-types
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 17 Jul 2021 06:35:06 +0000 (08:35 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 17 Jul 2021 06:42:21 +0000 (08:42 +0200)
DataType.type_symbol is properly initialized and can be used.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1206

vala/valaerrortype.vala

index 95ce7cf5e2278b4707042a910dbe60a177f7c5df..f287911a80fa7e5b203bf2e0ee34a2fefa4b8193 100644 (file)
@@ -79,22 +79,6 @@ public class Vala.ErrorType : ReferenceType {
                return et.error_code == error_code;
        }
 
-       public override string to_qualified_string (Scope? scope) {
-               string result;
-
-               if (error_domain == null) {
-                       result = "GLib.Error";
-               } else {
-                       result = error_domain.get_full_name ();
-               }
-
-               if (nullable) {
-                       result += "?";
-               }
-
-               return result;
-       }
-
        public override DataType copy () {
                var result = new ErrorType (error_domain, error_code, source_reference);
                result.value_owned = value_owned;