Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5e7ac9bc authored by Boudewijn Rempt's avatar Boudewijn Rempt

Get rid of two unused KoZoomMode methods

parent a45929c4
......@@ -71,11 +71,6 @@ qreal KoZoomMode::maximumZoom()
return maximumZoomValue;
}
qreal KoZoomMode::clampZoom(qreal zoom)
{
return qMin(maximumZoomValue, qMax(minimumZoomValue, zoom));
}
void KoZoomMode::setMinimumZoom(qreal zoom)
{
Q_ASSERT(zoom > 0.0f);
......
......@@ -48,11 +48,6 @@ public:
/// \return the to QString converted and translated Mode \c mode
static QString toString(Mode mode);
/// \param mode the mode name
/// \return true if \c mode isn't dependent on windowsize
static bool isConstant(const QString& mode)
{ return toMode(mode) == ZOOM_CONSTANT; }
/**
* Return the minimum zoom possible for documents.
*
......@@ -65,15 +60,6 @@ public:
* \return The maximum zoom possible.
*/
static qreal maximumZoom();
/**
* Clamp the zoom value so that mimimumZoom <= zoom <= maximumZoom.
*
* \param zoom The value to clamp.
*
* \return minimumZoom if zoom < minimumZoom, maximumZoom if zoom >
* maximumZoom, zoom if otherwise.
*/
static qreal clampZoom(qreal zoom);
/**
* Set the minimum zoom possible for documents.
......@@ -83,6 +69,7 @@ public:
*
* \param zoom The minimum zoom to use.
*/
static void setMinimumZoom(qreal zoom);
/**
* Set the maximum zoom possible for documents.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment