forked from qt-creator/qt-creator
VcsCommand: Remove one addJob overload
Remove defaultTimeoutS field, as it wasn't broadly used. Change-Id: I0056788b066eb6d682d5ba7acdb01d5dd3568967 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -109,7 +109,6 @@ public:
|
||||
QList<Job> m_jobs;
|
||||
|
||||
unsigned m_flags = 0;
|
||||
int m_defaultTimeoutS = 10;
|
||||
|
||||
bool m_progressiveOutput = false;
|
||||
bool m_hadOutput = false;
|
||||
@@ -201,28 +200,11 @@ const FilePath &VcsCommand::defaultWorkingDirectory() const
|
||||
return d->m_defaultWorkingDirectory;
|
||||
}
|
||||
|
||||
int VcsCommand::defaultTimeoutS() const
|
||||
{
|
||||
return d->m_defaultTimeoutS;
|
||||
}
|
||||
|
||||
void VcsCommand::setDefaultTimeoutS(int timeout)
|
||||
{
|
||||
d->m_defaultTimeoutS = timeout;
|
||||
}
|
||||
|
||||
void VcsCommand::addFlags(unsigned f)
|
||||
{
|
||||
d->m_flags |= f;
|
||||
}
|
||||
|
||||
void VcsCommand::addJob(const CommandLine &command,
|
||||
const FilePath &workingDirectory,
|
||||
const ExitCodeInterpreter &interpreter)
|
||||
{
|
||||
addJob(command, defaultTimeoutS(), workingDirectory, interpreter);
|
||||
}
|
||||
|
||||
void VcsCommand::addJob(const CommandLine &command, int timeoutS,
|
||||
const FilePath &workingDirectory,
|
||||
const ExitCodeInterpreter &interpreter)
|
||||
|
||||
Reference in New Issue
Block a user