LinuxDeviceProcess: Remove unused setRcFilesToSource()

Change-Id: Ica834cbecfa481a3a6c94519a9799c4b917d49a1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-01-31 10:19:30 +01:00
parent f7c9dac3a7
commit 74ea443ebf
2 changed files with 2 additions and 19 deletions

View File

@@ -49,11 +49,6 @@ LinuxDeviceProcess::LinuxDeviceProcess(const QSharedPointer<const ProjectExplore
});
}
void LinuxDeviceProcess::setRcFilesToSource(const QStringList &filePaths)
{
m_rcFilesToSource = filePaths;
}
QByteArray LinuxDeviceProcess::readAllStandardOutput()
{
QByteArray output = SshDeviceProcess::readAllStandardOutput();
@@ -88,7 +83,8 @@ QString LinuxDeviceProcess::fullCommandLine(const Runnable &runnable) const
{
CommandLine cmd;
for (const QString &filePath : rcFilesToSource()) {
const QStringList rcFilesToSource = {"/etc/profile", "$HOME/.profile"};
for (const QString &filePath : rcFilesToSource) {
cmd.addArgs({"test", "-f", filePath});
cmd.addArgs("&&", CommandLine::Raw);
cmd.addArgs({".", filePath});
@@ -116,11 +112,4 @@ QString LinuxDeviceProcess::fullCommandLine(const Runnable &runnable) const
return cmd.arguments();
}
const QStringList LinuxDeviceProcess::rcFilesToSource() const
{
if (!m_rcFilesToSource.isEmpty())
return m_rcFilesToSource;
return {"/etc/profile", "$HOME/.profile"};
}
} // namespace RemoteLinux