Skip to content

Commit

Permalink
[hybrisadaptor] Remove unused static function. Fixes MER#1749
Browse files Browse the repository at this point in the history
All the code that was using the HybrisAdaptor_sensorTypes() function has
been removed over time and now there are compilation warnings about
unused static function.

Remove dead code.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Feb 7, 2017
1 parent d882129 commit 461ef56
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions core/hybrisadaptor.cpp
Expand Up @@ -75,22 +75,6 @@
//#define SENSOR_TYPE_STEP_COUNTER (19)
//#define SENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR (20)

static QHash<QString,int> HybrisAdaptor_sensorTypes()
{
QHash<QString,int> types;
types["accelerometer"] = SENSOR_TYPE_ACCELEROMETER;
types["magnetomoter"] = SENSOR_TYPE_MAGNETIC_FIELD;
types["orientation"] = SENSOR_TYPE_ORIENTATION;
types["gyroscope"] = SENSOR_TYPE_GYROSCOPE;
types["light"] = SENSOR_TYPE_LIGHT;
types["pressure"] = SENSOR_TYPE_PRESSURE;
types["temperature"] = SENSOR_TYPE_TEMPERATURE;
types["proximity"] = SENSOR_TYPE_PROXIMITY;
types["gravity"] = SENSOR_TYPE_GRAVITY;
types["lacceration"] = SENSOR_TYPE_LINEAR_ACCELERATION;
return types;
}

Q_GLOBAL_STATIC(HybrisManager, hybrisManager)

HybrisManager::HybrisManager(QObject *parent)
Expand Down

0 comments on commit 461ef56

Please sign in to comment.