Browse Source

[1568] Remove a throw

Michal 'vorner' Vaner 13 years ago
parent
commit
3422adaa26
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/lib/util/buffer.h

+ 1 - 3
src/lib/util/buffer.h

@@ -380,9 +380,7 @@ public:
     /// \param pos The position in the buffer to be returned.
     uint8_t operator[](size_t pos) const
     {
-        if (pos >= size_) {
-            isc_throw(InvalidBufferPosition, "read at invalid position");
-        }
+        assert (pos < size_);
         return (buffer_[pos]);
     }
     //@}