Remove redundant check and make it an assert.

This commit is contained in:
jzmaddock
2015-10-23 13:27:01 +01:00
parent 526d9d4c2e
commit e824ddb35b

View File

@ -225,11 +225,11 @@ public:
mapfile_iterator() { node = 0; file = 0; offset = 0; }
mapfile_iterator(const mapfile* f, long arg_position)
{
BOOST_ASSERT(f);
file = f;
node = f->_first + arg_position / mapfile::buf_size;
offset = arg_position % mapfile::buf_size;
if(file)
file->lock(node);
file->lock(node);
}
mapfile_iterator(const mapfile_iterator& i)
{