From dbba0ff8d7456de3d8e7cc2796c48fcbc700acf1 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Mon, 15 Jun 2009 15:03:41 +0200 Subject: Removed the filename literals. --- src/shared/cplusplus/Control.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/shared/cplusplus/Control.cpp') 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 identifiers; LiteralTable stringLiterals; LiteralTable numericLiterals; - LiteralTable 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::length(chars); - return findOrInsertFileName(chars, length); -} - NameId *Control::nameId(Identifier *id) { return d->findOrInsertNameId(id); } -- cgit v1.2.1