ProjectExplorer: Remove IDevice::terminalCommand

Since Terminals can now be started for device file paths, there
is no need anymore for IDevice::terminalCommand.

Change-Id: I01c831ea7ee29d53efa6880631e8c6d54a4316aa
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-03-01 09:57:43 +01:00
parent 517400e7f6
commit 86da87d306
10 changed files with 56 additions and 46 deletions

View File

@@ -1240,17 +1240,4 @@ std::optional<FilePath> DockerDevice::clangdExecutable() const
return d->clangdExecutable();
}
std::optional<Utils::CommandLine> DockerDevice::terminalCommand(const FilePath &workDir,
const Environment &env) const
{
Q_UNUSED(env)
const QString shell = d->environment().value_or("SHELL", "/bin/sh");
return d->withDockerExecCmd({FilePath::fromUserInput(shell), {}},
std::nullopt,
workDir,
true,
false,
true);
}
} // namespace Docker::Internal

View File

@@ -101,9 +101,6 @@ public:
bool prepareForBuild(const ProjectExplorer::Target *target) override;
std::optional<Utils::FilePath> clangdExecutable() const override;
std::optional<Utils::CommandLine> terminalCommand(const Utils::FilePath &workDir,
const Utils::Environment &env) const override;
protected:
void fromMap(const QVariantMap &map) final;
QVariantMap toMap() const final;