From d3f9e973010ec3c6cacfd7eec0c8a55003680b03 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 20 Oct 2022 10:22:13 +0200 Subject: [PATCH] unused private methods removed --- src/common/QskGradient.cpp | 30 ------------------------------ src/common/QskGradient.h | 3 --- 2 files changed, 33 deletions(-) diff --git a/src/common/QskGradient.cpp b/src/common/QskGradient.cpp index 987474b4..2d7a7f76 100644 --- a/src/common/QskGradient.cpp +++ b/src/common/QskGradient.cpp @@ -382,21 +382,6 @@ int QskGradient::stopCount() const return m_stops.count(); } -void QskGradient::setStopAt( int index, qreal stop ) -{ - if ( stop < 0.0 || stop > 1.0 ) - { - qWarning( "Invalid gradient stop: %g, must be in the range [0,1]", stop ); - return; - } - - if ( index >= m_stops.size() ) - m_stops.resize( index + 1 ); - - m_stops[ index ].setPosition( stop ); - m_isDirty = true; -} - qreal QskGradient::stopAt( int index ) const { if ( index >= m_stops.size() ) @@ -405,21 +390,6 @@ qreal QskGradient::stopAt( int index ) const return m_stops[ index ].position(); } -void QskGradient::setColorAt( int index, const QColor& color ) -{ - if ( !color.isValid() ) - { - qWarning( "Invalid gradient color" ); - return; - } - - if ( index >= m_stops.size() ) - m_stops.resize( index + 1 ); - - m_stops[ index ].setColor( color ); - m_isDirty = true; -} - QColor QskGradient::colorAt( int index ) const { if ( index >= m_stops.size() ) diff --git a/src/common/QskGradient.h b/src/common/QskGradient.h index 11503867..c7ed3ffe 100644 --- a/src/common/QskGradient.h +++ b/src/common/QskGradient.h @@ -107,9 +107,6 @@ class QSK_EXPORT QskGradient const QVector< QRgb >&, bool discrete = false ); private: - void setStopAt( int index, qreal stop ); - void setColorAt( int index, const QColor& color ); - void updateStatusBits() const; QVector< QskGradientStop > m_stops;