Commit 50e99808 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

utils/udev: Drop Udev::listFramebuffers()

The fbdev backend was dropped so it's unused.
parent 6d1c97c4
Pipeline #208350 passed with stage
in 13 minutes and 18 seconds
......@@ -153,30 +153,6 @@ std::vector<UdevDevice::Ptr> Udev::listGPUs()
#endif
}
std::vector<UdevDevice::Ptr> Udev::listFramebuffers()
{
if (!m_udev) {
return {};
}
UdevEnumerate enumerate(this);
enumerate.addMatch(UdevEnumerate::Match::SubSystem, "graphics");
enumerate.addMatch(UdevEnumerate::Match::SysName, "fb[0-9]");
enumerate.scan();
auto vect = enumerate.find();
std::sort(vect.begin(), vect.end(), [](const UdevDevice::Ptr &device1, const UdevDevice::Ptr &device2) {
// if set as boot GPU, prefer 1
if (device1->isBootVga()) {
return true;
}
// if set as boot GPU, prefer 2
if (device2->isBootVga()) {
return false;
}
return true;
});
return vect;
}
UdevDevice::Ptr Udev::deviceFromSyspath(const char *syspath)
{
auto dev = udev_device_new_from_syspath(m_udev, syspath);
......
......@@ -83,7 +83,6 @@ public:
return m_udev != nullptr;
}
std::vector<UdevDevice::Ptr> listGPUs();
std::vector<UdevDevice::Ptr> listFramebuffers();
UdevDevice::Ptr deviceFromSyspath(const char *syspath);
std::unique_ptr<UdevMonitor> monitor();
operator udev *() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment