eeze/sensor: Finally get right of eeze_sensor_handle_get
authorStefan Schmidt <stefan@datenfreihafen.org>
Fri, 21 Sep 2012 14:56:40 +0000 (14:56 +0000)
committerStefan Schmidt <stefan@datenfreihafen.org>
Fri, 21 Sep 2012 14:56:40 +0000 (14:56 +0000)
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

legacy/eeze/src/lib/Eeze_Sensor.h
legacy/eeze/src/lib/eeze_sensor.c

index 83556b6..8abeabf 100644 (file)
@@ -224,14 +224,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.
  * @return The sensor object matching the given type
index aee73d0..344552c 100644 (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;