Browse Source

[2377] Eliminate needless variable

This was from the template in trac and it is currently not needed.
Michal 'vorner' Vaner 12 years ago
parent
commit
92226343e0
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/lib/dns/master_loader.cc

+ 2 - 4
src/lib/dns/master_loader.cc

@@ -50,10 +50,8 @@ public:
 
     bool loadIncremental(size_t count_limit) {
         size_t count = 0;
-        bool done = false;
-        // TODO: Replace getNextToken with the wrapper version
-        while (!done && (count < count_limit)) {
-            // Skip all EOLNs and finish on EOF
+        while (count < count_limit) {
+            // Skip all EOLNs (empty lines) and finish on EOF
             bool empty = true;
             do {
                 const MasterToken& empty_token(lexer_.getNextToken());