[gxml] Removing remaining property's name references from SerializableProperty implementations
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Removing remaining property's name references from SerializableProperty implementations
- Date: Thu, 22 Oct 2015 00:43:52 +0000 (UTC)
commit 4381035c246003ff1c52623cc760ba580ef6caf6
Author: Daniel Espinosa <esodan gmail com>
Date: Wed Oct 21 19:24:25 2015 -0500
Removing remaining property's name references from SerializableProperty implementations
gxml/SerializableBool.vala | 3 ---
gxml/SerializableDouble.vala | 3 ---
gxml/SerializableValueList.vala | 11 -----------
3 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gxml/SerializableBool.vala b/gxml/SerializableBool.vala
index 9458376..dc63996 100644
--- a/gxml/SerializableBool.vala
+++ b/gxml/SerializableBool.vala
@@ -28,7 +28,6 @@ using Gee;
public class GXml.SerializableBool : SerializableObjectModel, SerializableProperty
{
private string _val = null;
- private string _name = null;
public bool get_value () { return bool.parse (_val); }
public void set_value (bool val) { _val = val.to_string (); }
public string get_serializable_property_value () { return _val; }
@@ -38,8 +37,6 @@ public class GXml.SerializableBool : SerializableObjectModel, SerializableProper
else
_val = (bool.parse (val)).to_string ();
}
- public string get_serializable_property_name () { return _name; }
- public void set_serializable_property_name (string name) { _name = name; }
public override string to_string () {
if (_val != null) return (bool.parse (_val)).to_string ();
return false.to_string ();
diff --git a/gxml/SerializableDouble.vala b/gxml/SerializableDouble.vala
index 47fed0e..bd4710a 100644
--- a/gxml/SerializableDouble.vala
+++ b/gxml/SerializableDouble.vala
@@ -28,7 +28,6 @@ using Gee;
public class GXml.SerializableDouble : SerializableObjectModel, SerializableProperty
{
protected string _val = null;
- protected string _name = null;
protected int _fraction = -1;
public int get_fraction () { return _fraction; }
public void set_fraction (int fraction) {
@@ -45,8 +44,6 @@ public class GXml.SerializableDouble : SerializableObjectModel, SerializableProp
else
_val = double.parse (val).to_string ();
}
- public string get_serializable_property_name () { return _name; }
- public void set_serializable_property_name (string name) { _name = name; }
public override string to_string () {
if (_val != null) return (double.parse (_val)).to_string ();
return "";
diff --git a/gxml/SerializableValueList.vala b/gxml/SerializableValueList.vala
index 98286fd..32b00bd 100644
--- a/gxml/SerializableValueList.vala
+++ b/gxml/SerializableValueList.vala
@@ -37,7 +37,6 @@ public class GXml.SerializableValueList : SerializableObjectModel, SerializableP
{
private string _val = null;
- private string _name = null;
protected string[] _vals = null;
protected ArrayList<string> extra = null;
/**
@@ -56,14 +55,6 @@ public class GXml.SerializableValueList : SerializableObjectModel, SerializableP
return l;
}
/**
- * Creates a new { link GXml.SerializableValueList} with the given
- * property name.
- *
- * If no values where defined at construction time and no values
- * have been added, then this will return an empty list.
- */
- public SerializableValueList.with_name (string name) { _name = name; }
- /**
* Add a list of string values to select from.
*
* This values are added to the ones already defined at construct time.s
@@ -110,7 +101,5 @@ public class GXml.SerializableValueList : SerializableObjectModel, SerializableP
}
public string get_serializable_property_value () { return _val; }
public void set_serializable_property_value (string? val) { _val = val; }
- public string get_serializable_property_name () { return _name; }
- public void set_serializable_property_name (string name) { _name = name; }
public override string to_string () { return _val; }
}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]