forked from qt-creator/qt-creator
QbsSession: Remove state() from public API
This was used internally only. Change-Id: I2678d3084ec941b78aa165a94e3d7ba4d3c6a2b7 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -199,7 +199,7 @@ void QbsSession::initialize()
|
||||
});
|
||||
connect(d->qbsProcess, &QtcProcess::finished, this, [this] {
|
||||
d->qbsProcess->deleteLater();
|
||||
switch (state()) {
|
||||
switch (d->state) {
|
||||
case State::Inactive:
|
||||
QTC_CHECK(false);
|
||||
break;
|
||||
@@ -246,11 +246,6 @@ QbsSession::~QbsSession()
|
||||
delete d;
|
||||
}
|
||||
|
||||
QbsSession::State QbsSession::state() const
|
||||
{
|
||||
return d->state;
|
||||
}
|
||||
|
||||
optional<QbsSession::Error> QbsSession::lastError() const
|
||||
{
|
||||
return d->lastError;
|
||||
|
@@ -124,7 +124,6 @@ public:
|
||||
enum class State { Initializing, Active, Inactive };
|
||||
enum class Error { QbsFailedToStart, QbsQuit, ProtocolError, VersionMismatch };
|
||||
|
||||
State state() const;
|
||||
Utils::optional<Error> lastError() const;
|
||||
static QString errorString(Error error);
|
||||
QJsonObject projectData() const;
|
||||
|
Reference in New Issue
Block a user