forked from qt-creator/qt-creator
Android: Remove unused startAdbProcess()
Change-Id: I244ac1694ec4a983cca50bf8ab1637c8ac4a20ec Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -626,23 +626,4 @@ bool checkCertificateExists(const FilePath &keystorePath, const QString &keystor
|
||||
return proc.result() == ProcessResult::FinishedWithSuccess;
|
||||
}
|
||||
|
||||
Process *startAdbProcess(const QStringList &args, QString *err)
|
||||
{
|
||||
std::unique_ptr<Process> process(new Process);
|
||||
const FilePath adb = AndroidConfig::adbToolPath();
|
||||
const CommandLine command{adb, args};
|
||||
qCDebug(androidManagerLog).noquote() << "Running command (async):" << command.toUserOutput();
|
||||
process->setCommand(command);
|
||||
process->start();
|
||||
if (process->waitForStarted(500ms) && process->state() == QProcess::Running)
|
||||
return process.release();
|
||||
|
||||
const QString errorStr = process->readAllStandardError();
|
||||
qCDebug(androidManagerLog).noquote() << "Running command (async) failed:"
|
||||
<< command.toUserOutput() << "Output:" << errorStr;
|
||||
if (err)
|
||||
*err = errorStr;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace Android::AndroidManager
|
||||
|
@@ -66,8 +66,6 @@ bool checkCertificatePassword(const Utils::FilePath &keystorePath,
|
||||
bool checkCertificateExists(const Utils::FilePath &keystorePath,
|
||||
const QString &keystorePasswd, const QString &alias);
|
||||
|
||||
Utils::Process *startAdbProcess(const QStringList &args, QString *err = nullptr);
|
||||
|
||||
QJsonObject deploymentSettings(const ProjectExplorer::Target *target);
|
||||
bool isQtCreatorGenerated(const Utils::FilePath &deploymentFile);
|
||||
|
||||
|
Reference in New Issue
Block a user