forked from qt-creator/qt-creator
Utils: Remove now-unused FileName::appendPath()
Change-Id: I9d429a1f60930e27e3926e1242114bed3485f000 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -880,17 +880,6 @@ FileName FileName::relativeChildPath(const FileName &parent) const
|
||||
return FileName::fromString(m_data.mid(parent.m_data.size() + 1, -1));
|
||||
}
|
||||
|
||||
/// Appends \a s, ensuring a / between the parts
|
||||
FileName &FileName::appendPath(const QString &s)
|
||||
{
|
||||
if (s.isEmpty())
|
||||
return *this;
|
||||
if (!isEmpty() && !m_data.endsWith(QLatin1Char('/')))
|
||||
m_data.append('/');
|
||||
m_data.append(s);
|
||||
return *this;
|
||||
}
|
||||
|
||||
FileName FileName::pathAppended(const QString &str) const
|
||||
{
|
||||
FileName fn = *this;
|
||||
|
||||
Reference in New Issue
Block a user