OSDN Git Service

remove unused virtual QWidgetPrivate::aboutToDestroy()
authorIvailo Monev <xakepa10@laimg.moc>
Sun, 15 Dec 2019 18:51:29 +0000 (18:51 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Sun, 15 Dec 2019 18:51:29 +0000 (18:51 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/kernel/qwidget_p.h
src/gui/kernel/qwidget_x11.cpp

index 1fc33d0..6dce94d 100644 (file)
@@ -429,11 +429,6 @@ public:
     void setLayoutItemMargins(int left, int top, int right, int bottom);
     void setLayoutItemMargins(QStyle::SubElement element, const QStyleOption *opt = Q_NULLPTR);
 
-    // aboutToDestroy() is called just before the contents of
-    // QWidget::destroy() is executed. It's used to signal QWidget
-    // sub-classes that their internals are about to be released.
-    virtual void aboutToDestroy() {}
-
     inline QWidget *effectiveFocusWidget() {
         QWidget *w = q_func();
         while (w->focusProxy())
index 499311b..b47f3b2 100644 (file)
@@ -986,7 +986,6 @@ bool QWidgetPrivate::isBackgroundInherited() const
 void QWidget::destroy(bool destroyWindow, bool destroySubWindows)
 {
     Q_D(QWidget);
-    d->aboutToDestroy();
     if (!isWindow() && parentWidget())
         parentWidget()->d_func()->invalidateBuffer(d->effectiveRectFor(geometry()));
     d->deactivateWidgetCleanup();