Commit 64565e79 authored by hjk's avatar hjk Committed by hjk
Browse files

preprocessor: remove unused Preprocessor::string function



Change-Id: I12e487d278621325bfc3add4c569297efe3c264b
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent e78f9e4d
...@@ -1526,15 +1526,6 @@ bool Preprocessor::isQtReservedWord(const ByteArrayRef &macroId) ...@@ -1526,15 +1526,6 @@ bool Preprocessor::isQtReservedWord(const ByteArrayRef &macroId)
return false; 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) PPToken Preprocessor::generateToken(enum Kind kind, const char *content, int len, unsigned lineno, bool addQuotes)
{ {
const size_t pos = m_scratchBuffer.size(); const size_t pos = m_scratchBuffer.size();
......
...@@ -177,8 +177,6 @@ private: ...@@ -177,8 +177,6 @@ private:
inline void out(const ByteArrayRef &ref) const inline void out(const ByteArrayRef &ref) const
{ if (m_state.m_result) m_state.m_result->append(ref.start(), ref.length()); } { if (m_state.m_result) m_state.m_result->append(ref.start(), ref.length()); }
QString string(const char *first, int len) const;
PPToken generateToken(enum Kind kind, const char *content, int len, unsigned lineno, bool addQuotes); PPToken generateToken(enum Kind kind, const char *content, int len, unsigned lineno, bool addQuotes);
PPToken generateConcatenated(const PPToken &leftTk, const PPToken &rightTk); PPToken generateConcatenated(const PPToken &leftTk, const PPToken &rightTk);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment