forked from qt-creator/qt-creator
preprocessor: remove unused Preprocessor::string function
Change-Id: I12e487d278621325bfc3add4c569297efe3c264b Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1526,15 +1526,6 @@ bool Preprocessor::isQtReservedWord(const ByteArrayRef ¯oId)
|
||||
return false;
|
||||
}
|
||||
|
||||
QString Preprocessor::string(const char *first, int length) const
|
||||
{
|
||||
if (m_originalSource.isEmpty())
|
||||
return QString::fromUtf8(first, length);
|
||||
|
||||
const int position = first - m_state.m_source.constData();
|
||||
return m_originalSource.mid(position, length);
|
||||
}
|
||||
|
||||
PPToken Preprocessor::generateToken(enum Kind kind, const char *content, int len, unsigned lineno, bool addQuotes)
|
||||
{
|
||||
const size_t pos = m_scratchBuffer.size();
|
||||
|
||||
Reference in New Issue
Block a user