diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-06-15 15:03:41 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-06-15 15:39:20 +0200 |
commit | dbba0ff8d7456de3d8e7cc2796c48fcbc700acf1 (patch) | |
tree | d0724a1110420c55e9674bec08bbf3ade8ece6f1 /src/shared/cplusplus/Control.cpp | |
parent | 1754aefdb165c64ae0751864c58f02d0c24cd664 (diff) | |
download | qt-creator-dbba0ff8d7456de3d8e7cc2796c48fcbc700acf1.tar.gz |
Removed the filename literals.
Diffstat (limited to 'src/shared/cplusplus/Control.cpp')
-rw-r--r-- | src/shared/cplusplus/Control.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp index 509e79b0a6..dbe1634069 100644 --- a/src/shared/cplusplus/Control.cpp +++ b/src/shared/cplusplus/Control.cpp @@ -449,7 +449,6 @@ public: LiteralTable<Identifier> identifiers; LiteralTable<StringLiteral> stringLiterals; LiteralTable<NumericLiteral> numericLiterals; - LiteralTable<StringLiteral> fileNames; // ### replace std::map with lookup tables. ASAP! @@ -534,12 +533,6 @@ Control::NumericLiteralIterator Control::firstNumericLiteral() const Control::NumericLiteralIterator Control::lastNumericLiteral() const { return d->numericLiterals.end(); } -Control::FileNameIterator Control::firstFileName() const -{ return d->fileNames.begin(); } - -Control::FileNameIterator Control::lastFileName() const -{ return d->fileNames.end(); } - StringLiteral *Control::findOrInsertStringLiteral(const char *chars, unsigned size) { return d->stringLiterals.findOrInsertLiteral(chars, size); } @@ -558,21 +551,6 @@ NumericLiteral *Control::findOrInsertNumericLiteral(const char *chars) return findOrInsertNumericLiteral(chars, length); } -unsigned Control::fileNameCount() const -{ return d->fileNames.size(); } - -StringLiteral *Control::fileNameAt(unsigned index) const -{ return d->fileNames.at(index); } - -StringLiteral *Control::findOrInsertFileName(const char *chars, unsigned size) -{ return d->fileNames.findOrInsertLiteral(chars, size); } - -StringLiteral *Control::findOrInsertFileName(const char *chars) -{ - unsigned length = std::char_traits<char>::length(chars); - return findOrInsertFileName(chars, length); -} - NameId *Control::nameId(Identifier *id) { return d->findOrInsertNameId(id); } |