diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-17 23:24:09 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-17 23:24:09 +0200 |
commit | 36f46546e9bdeeb42764c5b471d86dbfa28a981b (patch) | |
tree | bc4c4a37732a84c7e76b535a7fc28e8ed6fd4935 /src | |
parent | aa62f6a15c3834bc16f15e95f8d6e956b72fabd0 (diff) | |
download | upower-36f46546e9bdeeb42764c5b471d86dbfa28a981b.tar.gz |
daemon: Remove dead code from up_daemon_device_changed_cb()
Diffstat (limited to 'src')
-rw-r--r-- | src/up-daemon.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/up-daemon.c b/src/up-daemon.c index 1528ee2..611a25b 100644 --- a/src/up-daemon.c +++ b/src/up-daemon.c @@ -885,7 +885,6 @@ up_daemon_poll_battery_devices_for_a_little_bit (UpDaemon *daemon) static void up_daemon_device_changed_cb (UpDevice *device, GParamSpec *pspec, UpDaemon *daemon) { - const gchar *object_path; UpDeviceKind type; gboolean ret; UpDaemonPrivate *priv = daemon->priv; @@ -912,16 +911,6 @@ up_daemon_device_changed_cb (UpDevice *device, GParamSpec *pspec, UpDaemon *daem warning_level = up_daemon_get_warning_level_local (daemon); if (warning_level != priv->warning_level) up_daemon_set_warning_level (daemon, warning_level); - - /* emit */ - object_path = up_device_get_object_path (device); - g_debug ("emitting device-changed: %s", object_path); - - /* don't crash the session */ - if (object_path == NULL) { - g_warning ("INTERNAL STATE CORRUPT: not sending NULL, device:%p", device); - return; - } } /** |