forked from qt-creator/qt-creator
Kit: Remove some unused code
Change-Id: I7f929466f9a4284127a301db3f38320934bcff20 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -312,17 +312,6 @@ QString Kit::displayName() const
|
|||||||
return d->m_macroExpander.expand(d->m_unexpandedDisplayName);
|
return d->m_macroExpander.expand(d->m_unexpandedDisplayName);
|
||||||
}
|
}
|
||||||
|
|
||||||
static QString candidateName(const QString &name, const QString &postfix)
|
|
||||||
{
|
|
||||||
if (name.contains(postfix))
|
|
||||||
return QString();
|
|
||||||
QString candidate = name;
|
|
||||||
if (!candidate.isEmpty())
|
|
||||||
candidate.append(QLatin1Char('-'));
|
|
||||||
candidate.append(postfix);
|
|
||||||
return candidate;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Kit::setUnexpandedDisplayName(const QString &name)
|
void Kit::setUnexpandedDisplayName(const QString &name)
|
||||||
{
|
{
|
||||||
if (d->m_unexpandedDisplayName == name)
|
if (d->m_unexpandedDisplayName == name)
|
||||||
@@ -332,21 +321,6 @@ void Kit::setUnexpandedDisplayName(const QString &name)
|
|||||||
kitUpdated();
|
kitUpdated();
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList Kit::candidateNameList(const QString &base) const
|
|
||||||
{
|
|
||||||
QStringList result;
|
|
||||||
result << base;
|
|
||||||
foreach (KitInformation *ki, KitManager::kitInformation()) {
|
|
||||||
const QString postfix = ki->displayNamePostfix(this);
|
|
||||||
if (!postfix.isEmpty()) {
|
|
||||||
QString tmp = candidateName(base, postfix);
|
|
||||||
if (!tmp.isEmpty())
|
|
||||||
result << tmp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Kit::setCustomFileSystemFriendlyName(const QString &fileSystemFriendlyName)
|
void Kit::setCustomFileSystemFriendlyName(const QString &fileSystemFriendlyName)
|
||||||
{
|
{
|
||||||
d->m_fileSystemFriendlyName = fileSystemFriendlyName;
|
d->m_fileSystemFriendlyName = fileSystemFriendlyName;
|
||||||
|
|||||||
@@ -79,8 +79,6 @@ public:
|
|||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
void setUnexpandedDisplayName(const QString &name);
|
void setUnexpandedDisplayName(const QString &name);
|
||||||
|
|
||||||
QStringList candidateNameList(const QString &base) const;
|
|
||||||
|
|
||||||
QString fileSystemFriendlyName() const;
|
QString fileSystemFriendlyName() const;
|
||||||
QString customFileSystemFriendlyName() const;
|
QString customFileSystemFriendlyName() const;
|
||||||
void setCustomFileSystemFriendlyName(const QString &fileSystemFriendlyName);
|
void setCustomFileSystemFriendlyName(const QString &fileSystemFriendlyName);
|
||||||
|
|||||||
Reference in New Issue
Block a user