VcsBase: Remove some ssh related methods

Remove VcsCommand::m_sshPrompt, as it is always taken
from settings.

Change-Id: I9f46bb5a9de03e907f2098ca72a647c969e55a27
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-07-12 12:45:36 +02:00
parent 975baf23ac
commit cea7be0486
4 changed files with 6 additions and 24 deletions

View File

@@ -55,7 +55,6 @@ VcsCommand::VcsCommand(const FilePath &workingDirectory, const Environment &envi
VcsOutputWindow::setRepository(workingDirectory.toString());
setDisableUnixTerminal();
m_sshPrompt = VcsBase::sshPrompt();
connect(this, &VcsCommand::started, this, [this] {
if (flags() & ExpectRepoChanges)
@@ -79,7 +78,7 @@ VcsCommand::VcsCommand(const FilePath &workingDirectory, const Environment &envi
Environment VcsCommand::environment() const
{
Environment env = ShellCommand::environment();
VcsBase::setProcessEnvironment(&env, flags() & ForceCLocale, m_sshPrompt);
VcsBase::setProcessEnvironment(&env, flags() & ForceCLocale);
return env;
}