[gxml] GomProperty.initialize() removed
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] GomProperty.initialize() removed
- Date: Thu, 26 Jan 2017 16:54:14 +0000 (UTC)
commit 744d6a9cb1481817f71f1dd19f4de947fed5c203
Author: Daniel Espinosa <esodan gmail com>
Date: Thu Jan 26 10:53:11 2017 -0600
GomProperty.initialize() removed
gxml/GomProperty.vala | 12 ------------
gxml/GomSchema.vala | 3 ++-
2 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/gxml/GomProperty.vala b/gxml/GomProperty.vala
index 0c347d0..6178b61 100644
--- a/gxml/GomProperty.vala
+++ b/gxml/GomProperty.vala
@@ -46,10 +46,6 @@ public interface GXml.GomProperty : Object
*/
public abstract string value { owned get; set; }
/**
- * Convenient function to initialize property's name.
- */
- public abstract void initialize (string attribute_name);
- /**
* Takes a string and check if it can be validated using
*/
public abstract bool validate_value (string val);
@@ -80,14 +76,6 @@ public abstract class GXml.GomBaseProperty : Object, GXml.GomProperty {
*/
public abstract string value { owned get; set; }
/**
- * {@inheritDoc}
- */
- public void initialize (string attribute_name) {
-#if DEBUG
- message ("Type: "+this.get_type ().name());
-#endif
- _attribute_name = attribute_name; }
- /**
* Takes a string and check if it can be validated using
* {@link validation_rule}.
*/
diff --git a/gxml/GomSchema.vala b/gxml/GomSchema.vala
index d60d6d7..b0f6ea2 100644
--- a/gxml/GomSchema.vala
+++ b/gxml/GomSchema.vala
@@ -98,6 +98,7 @@ public class GXml.GomXsdTypeRestrictionEnumeration : GomXsdTypeRestrictionDef {
}
}
public class GXml.GomXsdTypeRestrictionWhiteSpace: GomXsdTypeRestrictionDef {
+ [Description (nick="::fixed")]
public Fixed fixed { get; set; }
[Description (nick="::id")]
public string id { get; set; }
@@ -111,7 +112,7 @@ public class GXml.GomXsdTypeRestrictionWhiteSpace: GomXsdTypeRestrictionDef {
IXsdSchema.SCHEMA_NAMESPACE_PREFIX,
IXsdTypeRestrictionWhiteSpace.SCHEMA_NODE_NAME);
}
- public class Fixed : GomBoolean { construct { initialize ("fixed"); } }
+ public class Fixed : GomBoolean {}
}
public class GXml.GomXsdTypeRestrictionPattern : GomXsdTypeRestrictionDef {}
public class GXml.GomXsdTypeRestrictionAssertion : GomXsdTypeRestrictionDef {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]