mirror of
https://github.com/KDE/konsole.git
synced 2026-05-04 20:55:56 -04:00
Remove code for tab title formatter %c and %C.
Those two formatters have never been actually implemented or revealed to users. It is quite hard to infer what they are supposed to do based upon exising code and commit history
This commit is contained in:
@@ -125,9 +125,6 @@ QString ProcessInfo::format(const QString& input) const
|
||||
// search for and replace known marker
|
||||
output.replace("%u", userName());
|
||||
output.replace("%n", name(&ok));
|
||||
// TODO: un-comment me when ProcessInfo::formatCommand() is implemented.
|
||||
//output.replace("%c",formatCommand(name(&ok),arguments(&ok),ShortCommandFormat));
|
||||
//output.replace("%C",formatCommand(name(&ok),arguments(&ok),LongCommandFormat));
|
||||
|
||||
QString dir = validCurrentDir();
|
||||
if (output.contains("%D")) {
|
||||
@@ -145,17 +142,6 @@ QString ProcessInfo::format(const QString& input) const
|
||||
return output;
|
||||
}
|
||||
|
||||
QString ProcessInfo::formatCommand(const QString& name,
|
||||
const QVector<QString>& arguments,
|
||||
CommandFormat format) const
|
||||
{
|
||||
Q_UNUSED(name);
|
||||
Q_UNUSED(format);
|
||||
|
||||
// TODO Implement me
|
||||
return QStringList(QList<QString>::fromVector(arguments)).join(" ");
|
||||
}
|
||||
|
||||
QSet<QString> ProcessInfo::_commonDirNames;
|
||||
|
||||
QSet<QString> ProcessInfo::commonDirNames()
|
||||
|
||||
Reference in New Issue
Block a user