diff --git a/src/widget/wlibrarysidebar.cpp b/src/widget/wlibrarysidebar.cpp index ee472b9ad82..c95b2349fec 100644 --- a/src/widget/wlibrarysidebar.cpp +++ b/src/widget/wlibrarysidebar.cpp @@ -15,30 +15,6 @@ namespace { constexpr int expand_time = 250; constexpr int collapse_time = 750; -std::shared_ptr newSyntheticEvent(QPoint position, const QDropEvent* event) { - auto syntheticEvent = std::make_shared( - position, - event->possibleActions(), - event->mimeData(), - event->buttons(), - event->modifiers(), - event->type()); - - // Copy mutable state from original event - syntheticEvent->setAccepted(event->isAccepted()); - syntheticEvent->setDropAction(event->dropAction()); - - return syntheticEvent; - - return syntheticEvent; -} - -void finishSyntheticEvent(std::shared_ptr syntheticEvent, QDropEvent* event) { - // Mirror modifications back to the original event - event->setAccepted(syntheticEvent->isAccepted()); - event->setDropAction(syntheticEvent->dropAction()); -} - } // namespace WLibrarySidebar::WLibrarySidebar(QWidget* parent)