From cd13ec38a7dab48529a80b1773fb5076da0086f1 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Thu, 25 Feb 2021 12:58:11 +0100 Subject: [PATCH] QBrush: get rid of an unused private function No idea why it's there, it's unused. Change-Id: Icf7b48e1e4ab37158a81e15ffa5a7125bfd10822 Reviewed-by: Allan Sandfeld Jensen --- src/gui/painting/qbrush.cpp | 5 ----- src/gui/painting/qbrush.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/gui/painting/qbrush.cpp b/src/gui/painting/qbrush.cpp index 4400abad4f..60d0b41624 100644 --- a/src/gui/painting/qbrush.cpp +++ b/src/gui/painting/qbrush.cpp @@ -571,11 +571,6 @@ QBrush::~QBrush() { } -void QBrush::cleanUp(QBrushData *x) -{ - QBrushDataPointerDeleter::deleteData(x); -} - static constexpr inline bool use_same_brushdata(Qt::BrushStyle lhs, Qt::BrushStyle rhs) { return lhs == rhs // includes Qt::TexturePattern diff --git a/src/gui/painting/qbrush.h b/src/gui/painting/qbrush.h index fea5afad57..5ab9e88443 100644 --- a/src/gui/painting/qbrush.h +++ b/src/gui/painting/qbrush.h @@ -116,7 +116,6 @@ private: void detach(Qt::BrushStyle newStyle); void init(const QColor &color, Qt::BrushStyle bs); QScopedPointer d; - void cleanUp(QBrushData *x); public: inline bool isDetached() const;