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();
 | 
			
		||||
 
 | 
			
		||||
@@ -177,8 +177,6 @@ private:
 | 
			
		||||
    inline void out(const ByteArrayRef &ref) const
 | 
			
		||||
    { 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 generateConcatenated(const PPToken &leftTk, const PPToken &rightTk);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user