[jscore] Remove the custom conversion for doubles (it's the default conversion anyway)
authorKalle Vahlman <kalle.vahlman@movial.com>
Wed, 29 Apr 2009 05:55:59 +0000 (08:55 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Wed, 29 Apr 2009 05:55:59 +0000 (08:55 +0300)
jscorebus/jscorebus.c

index ee95726..89c37cf 100644 (file)
@@ -156,7 +156,6 @@ JSValueRef _convert_number_object(JSContextRef context,
 
 MAKE_NUMBER_CLASS_AND_GETTER("DBusUInt32", uint32)
 MAKE_NUMBER_CLASS_AND_GETTER("DBusInt32", int32)
-MAKE_NUMBER_CLASS_AND_GETTER("DBusDouble", double)
 MAKE_NUMBER_CLASS_AND_GETTER("DBusByte", byte)
 MAKE_NUMBER_CLASS_AND_GETTER("DBusUInt64", uint64)
 MAKE_NUMBER_CLASS_AND_GETTER("DBusInt64", int64)
@@ -505,7 +504,6 @@ JSStaticFunction dbus_jsclass_staticfuncs[] =
   /* Type constructors */
   { "Int32",   _get_int32, kJSPropertyAttributeReadOnly },
   { "UInt32",  _get_uint32, kJSPropertyAttributeReadOnly },
-  { "Double",  _get_double, kJSPropertyAttributeReadOnly },
   { "Byte",    _get_byte, kJSPropertyAttributeReadOnly },
   { "Int64",   _get_int64, kJSPropertyAttributeReadOnly },
   { "UInt64",  _get_uint64, kJSPropertyAttributeReadOnly },
@@ -587,7 +585,6 @@ void jscorebus_init(DBusConnection *psession, DBusConnection *psystem)
 
   INIT_NUMBER_CLASS("DBusInt32",  &int32_jsclass_def,  DBUS_TYPE_INT32,  0);
   INIT_NUMBER_CLASS("DBusUInt32", &uint32_jsclass_def, DBUS_TYPE_UINT32, 1);
-  INIT_NUMBER_CLASS("DBusDouble", &double_jsclass_def, DBUS_TYPE_DOUBLE, 2);
   INIT_NUMBER_CLASS("DBusByte",   &byte_jsclass_def,   DBUS_TYPE_BYTE,   3);
   INIT_NUMBER_CLASS("DBusUInt64", &uint64_jsclass_def, DBUS_TYPE_UINT64, 4);
   INIT_NUMBER_CLASS("DBusInt64",  &int64_jsclass_def,  DBUS_TYPE_INT64,  5);