[vala/0.52] vala: Rely on DataType.to_qualified_string() implementation for error-types
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.52] vala: Rely on DataType.to_qualified_string() implementation for error-types
- Date: Tue, 20 Jul 2021 08:40:48 +0000 (UTC)
commit 75e8e672e412438b8d73e25195e2b093832ae2ce
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Jul 17 08:35:06 2021 +0200
vala: Rely on DataType.to_qualified_string() implementation for error-types
DataType.type_symbol is properly initialized and can be used.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1206
vala/valaerrortype.vala | 16 ----------------
1 file changed, 16 deletions(-)
---
diff --git a/vala/valaerrortype.vala b/vala/valaerrortype.vala
index 95ce7cf5e..f287911a8 100644
--- a/vala/valaerrortype.vala
+++ b/vala/valaerrortype.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]