Skip to content

Commit ed8eadb

Browse files
committed
STYLE: Remove deprecated function isRelease() from application API
Migration guide is available here: https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/MigrationGuide/Slicer#Slicer_4.9:_Application:_isRelease.28.29_function_not_available git-svn-id: http://svn.slicer.org/Slicer4/trunk@26888 3bd1e089-480b-0410-8dfb-8563597acbee
1 parent caf6494 commit ed8eadb

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

Base/QTCore/qSlicerCoreApplication.cxx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,13 +1007,6 @@ QString qSlicerCoreApplication::releaseType()const
10071007
return QString(Slicer_RELEASE_TYPE);
10081008
}
10091009

1010-
//-----------------------------------------------------------------------------
1011-
bool qSlicerCoreApplication::isRelease()const
1012-
{
1013-
qWarning() << Q_FUNC_INFO << "Deprecated: Use releaseType() instead";
1014-
return this->releaseType() == "Stable";
1015-
}
1016-
10171010
//-----------------------------------------------------------------------------
10181011
void qSlicerCoreApplication::setMRMLScene(vtkMRMLScene* newMRMLScene)
10191012
{

Base/QTCore/qSlicerCoreApplication.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class Q_SLICER_BASE_QTCORE_EXPORT qSlicerCoreApplication : public QApplication
7878
Q_PROPERTY(QString extensionsInstallPath READ extensionsInstallPath WRITE setExtensionsInstallPath)
7979
Q_PROPERTY(QString intDir READ intDir CONSTANT)
8080
Q_PROPERTY(bool isInstalled READ isInstalled CONSTANT)
81-
Q_PROPERTY(bool isRelease READ isRelease CONSTANT)
8281
Q_PROPERTY(QString releaseType READ releaseType CONSTANT)
8382
Q_PROPERTY(QString repositoryUrl READ repositoryUrl CONSTANT)
8483
Q_PROPERTY(QString repositoryBranch READ repositoryBranch CONSTANT)
@@ -258,13 +257,6 @@ class Q_SLICER_BASE_QTCORE_EXPORT qSlicerCoreApplication : public QApplication
258257
/// Release type can be `Experimental`, `Nightly` or `Stable`.
259258
QString releaseType()const;
260259

261-
/// \brief Return true if this instance of Slicer is a \a Stable release build.
262-
///
263-
/// \deprecated Use `releaseType() == "Stable"` instead.
264-
///
265-
/// \sa releaseType()
266-
bool isRelease()const;
267-
268260
/// Associate a module with a node type.
269261
/// It is currently only used for determining which module can edit a specific node.
270262
/// If multiple modules are registered for the same class then the node widget's

0 commit comments

Comments
 (0)