summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-07-24 17:46:31 +0100
committerRichard Hughes <richard@hughsie.com>2008-07-24 17:46:31 +0100
commit8a04a2c3eda34f049a0d2190070c9c9e19ee46ec (patch)
treef7e95363342cbba4a4be75fdeb023ca097000c66 /src
parent4398839de1ecf4e88f425703c182444540a488c2 (diff)
remove the battery-energy-empty-design parameter, it's never going to be anything other than zero
Diffstat (limited to 'src')
-rw-r--r--src/devkit-power-source.c9
-rw-r--r--src/org.freedesktop.DeviceKit.Power.Source.xml11
2 files changed, 0 insertions, 20 deletions
diff --git a/src/devkit-power-source.c b/src/devkit-power-source.c
index 9172c59..e90082c 100644
--- a/src/devkit-power-source.c
+++ b/src/devkit-power-source.c
@@ -68,7 +68,6 @@ struct DevkitPowerSourcePrivate
double battery_energy;
double battery_energy_empty;
- double battery_energy_empty_design;
double battery_energy_full;
double battery_energy_full_design;
double battery_energy_rate;
@@ -96,7 +95,6 @@ enum
PROP_LINE_POWER_ONLINE,
PROP_BATTERY_ENERGY,
PROP_BATTERY_ENERGY_EMPTY,
- PROP_BATTERY_ENERGY_EMPTY_DESIGN,
PROP_BATTERY_ENERGY_FULL,
PROP_BATTERY_ENERGY_FULL_DESIGN,
PROP_BATTERY_ENERGY_RATE,
@@ -162,9 +160,6 @@ get_property (GObject *object,
case PROP_BATTERY_ENERGY_EMPTY:
g_value_set_double (value, source->priv->battery_energy_empty);
break;
- case PROP_BATTERY_ENERGY_EMPTY_DESIGN:
- g_value_set_double (value, source->priv->battery_energy_empty_design);
- break;
case PROP_BATTERY_ENERGY_FULL:
g_value_set_double (value, source->priv->battery_energy_full);
break;
@@ -260,10 +255,6 @@ devkit_power_source_class_init (DevkitPowerSourceClass *klass)
g_param_spec_double ("battery-energy-empty", NULL, NULL, 0, G_MAXDOUBLE, 0, G_PARAM_READABLE));
g_object_class_install_property (
object_class,
- PROP_BATTERY_ENERGY_EMPTY_DESIGN,
- g_param_spec_double ("battery-energy-empty-design", NULL, NULL, 0, G_MAXDOUBLE, 0, G_PARAM_READABLE));
- g_object_class_install_property (
- object_class,
PROP_BATTERY_ENERGY_FULL,
g_param_spec_double ("battery-energy-full", NULL, NULL, 0, G_MAXDOUBLE, 0, G_PARAM_READABLE));
g_object_class_install_property (
diff --git a/src/org.freedesktop.DeviceKit.Power.Source.xml b/src/org.freedesktop.DeviceKit.Power.Source.xml
index bcf164f..61edd16 100644
--- a/src/org.freedesktop.DeviceKit.Power.Source.xml
+++ b/src/org.freedesktop.DeviceKit.Power.Source.xml
@@ -128,17 +128,6 @@
</doc:para></doc:description></doc:doc>
</property>
- <property name="battery-energy-empty-design" type="d" access="read">
- <doc:doc><doc:description><doc:para>
- Amount of energy (measured in Wh) the power source is
- designed to hold when it's considered to be empty.
- </doc:para><doc:para>
- This property is only valid if the property
- <doc:ref type="property" to="Source:type">type</doc:ref>
- has the value "battery".
- </doc:para></doc:description></doc:doc>
- </property>
-
<property name="battery-energy-full" type="d" access="read">
<doc:doc><doc:description><doc:para>
Amount of energy (measured in Wh) in the power source when