removed useless local var and code
authorJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 7 Jun 2016 15:36:57 +0000 (17:36 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 7 Jun 2016 15:36:57 +0000 (17:36 +0200)
src/main.c

index 6037469..55209df 100644 (file)
@@ -185,7 +185,6 @@ static gboolean ui_refresh_thread(gpointer data)
        struct config *cfg;
        gboolean ret;
        struct ui_psensor *ui = (struct ui_psensor *)data;
-       int use_celsius;
 
        ret = TRUE;
        cfg = ui->config;
@@ -199,10 +198,6 @@ static gboolean ui_refresh_thread(gpointer data)
        if (is_appindicator_supported() || is_status_supported())
                indicators_update(ui);
 
-       if (config_get_temperature_unit() == CELSIUS)
-               use_celsius = 1;
-       else
-               use_celsius = 0;
        ui_unity_launcher_entry_update(ui->sensors);
 
        if (ui->graph_update_interval != cfg->graph_update_interval) {