Drop unused variable UdevMonitor::m_udev

Credits to clang for finding unused private fields.
This commit is contained in:
Martin Gräßlin 2017-07-31 18:22:14 +02:00
parent bca8777acd
commit f15ceaffe6
2 changed files with 1 additions and 3 deletions

View file

@ -247,8 +247,7 @@ bool UdevDevice::hasProperty(const char *key, const char *value)
}
UdevMonitor::UdevMonitor(Udev *udev)
: m_udev(udev)
, m_monitor(udev_monitor_new_from_netlink(*udev, "udev"))
: m_monitor(udev_monitor_new_from_netlink(*udev, "udev"))
{
}

1
udev.h
View file

@ -69,7 +69,6 @@ public:
UdevDevice::Ptr getDevice();
private:
Udev *m_udev;
udev_monitor *m_monitor;
};