eeze/sensor: Finally get right of eeze_sensor_handle_get

No longer needed as it only contains the modules information that will be
used in the eeze_sensor core. All other important bits have found new homes
in other data structures.

SVN revision: 76969
This commit is contained in:
Stefan Schmidt 2012-09-21 14:56:40 +00:00
parent 357cbb570c
commit c35df67148
2 changed files with 0 additions and 26 deletions

View File

@ -223,14 +223,6 @@ EAPI Eina_Bool eeze_sensor_read(Eeze_Sensor_Obj *sens);
*/
EAPI Eina_Bool eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void *user_data);
/**
* @brief Helper function to access the sensor handle
* @return The sensor handle to operate on
*
* @since 1.8
*/
EAPI Eeze_Sensor *eeze_sensor_handle_get(void);
/**
* @brief Fetch the sensor object by type from the sensor object list
* @param type Sensor type to fetch from the list of sensor objects.

View File

@ -18,12 +18,6 @@ static const char *_module_priority[] = {
NULL
};
EAPI Eeze_Sensor *
eeze_sensor_handle_get(void)
{
return g_handle;
}
Eeze_Sensor_Module *
_highest_priority_module_get(void)
{
@ -124,12 +118,8 @@ EAPI Eeze_Sensor_Obj *
eeze_sensor_new(Eeze_Sensor_Type type)
{
Eeze_Sensor_Obj *sens;
Eeze_Sensor *handle;
Eeze_Sensor_Module *module = NULL;
handle = eeze_sensor_handle_get();
if (!handle) return NULL;
sens = calloc(1, sizeof(Eeze_Sensor_Obj));
if (!sens) return NULL;
@ -207,14 +197,10 @@ eeze_sensor_timestamp_get(Eeze_Sensor_Obj *sens, unsigned long long *timestamp)
EAPI Eina_Bool
eeze_sensor_read(Eeze_Sensor_Obj *sens)
{
Eeze_Sensor *handle = NULL;
Eeze_Sensor_Module *module = NULL;
if (!sens) return EINA_FALSE;
handle = eeze_sensor_handle_get();
if (!handle) return EINA_FALSE;
module = _highest_priority_module_get();
if (!module) return EINA_FALSE;
@ -228,10 +214,6 @@ EAPI Eina_Bool
eeze_sensor_async_read(Eeze_Sensor_Obj *sens, void *user_data)
{
Eeze_Sensor_Module *module = NULL;
Eeze_Sensor *handle = NULL;
handle = eeze_sensor_handle_get();
if (!handle) return EINA_FALSE;
module = _highest_priority_module_get();
if (!module) return EINA_FALSE;