diff --git a/drmhwctwo.cpp b/drmhwctwo.cpp index 33ad0fbfcf5ae6ec532606303544dc7352347321..2b7f684b7f36806ba7b8f11a4d52b04b2212aa2a 100644 --- a/drmhwctwo.cpp +++ b/drmhwctwo.cpp @@ -203,9 +203,6 @@ HWC2::Error DrmHwcTwo::RegisterCallback(int32_t descriptor, switch (callback) { case HWC2::Callback::Hotplug: { - auto hotplug = reinterpret_cast(function); - hotplug(data, HWC_DISPLAY_PRIMARY, - static_cast(HWC2::Connection::Connected)); auto &drmDevices = resource_manager_.getDrmDevices(); for (auto &device : drmDevices) HandleInitialHotplugState(device.get());