Index: src/scanner.h |
diff --git a/src/scanner.h b/src/scanner.h |
index c136a61432dec04ee1a275a0e123a83518712176..6d0d4dc8eddb52022f67cb1cdb01273695666373 100644 |
--- a/src/scanner.h |
+++ b/src/scanner.h |
@@ -166,11 +166,7 @@ class LiteralBuffer { |
public: |
LiteralBuffer() : is_one_byte_(true), position_(0), backing_store_() { } |
- ~LiteralBuffer() { |
- if (backing_store_.length() > 0) { |
- backing_store_.Dispose(); |
- } |
- } |
+ ~LiteralBuffer() { backing_store_.Dispose(); } |
INLINE(void AddChar(uint32_t code_unit)) { |
if (position_ >= backing_store_.length()) ExpandBuffer(); |