Browse Source

Revert "[2387] Allow comments at the end of DS like string data"

This reverts commit 00d53a32412c50c20c573f40d895e8ad7f74ad4f.
Mukund Sivaraman 12 years ago
parent
commit
fdfe820d25
1 changed files with 1 additions and 8 deletions
  1. 1 8
      src/lib/dns/rdata/generic/detail/ds_like.h

+ 1 - 8
src/lib/dns/rdata/generic/detail/ds_like.h

@@ -79,14 +79,7 @@ public:
 
             constructFromLexer(lexer);
 
-            for (MasterToken::Type token_type = lexer.getNextToken().getType();
-                 token_type != MasterToken::END_OF_FILE;
-                 token_type = lexer.getNextToken().getType())
-            {
-                if (token_type == MasterToken::END_OF_LINE) {
-                    continue;
-                }
-
+            if (lexer.getNextToken().getType() != MasterToken::END_OF_FILE) {
                 isc_throw(InvalidRdataText,
                           "Extra input text for " << RRType(typeCode) << ": "
                           << ds_str);