]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/blockallocator.cpp
Tighten safety measures
[r2c2.git] / source / libr2c2 / blockallocator.cpp
index 55f932e4233f0652f368a75f2fe9607654f9e125..fc414cc99825d25b94140438923b9ed9f46bfff7 100644 (file)
@@ -227,17 +227,6 @@ bool BlockAllocator::reserve_block(const BlockIter &block)
        }
 }
 
-void BlockAllocator::release_until(const Block &block)
-{
-       for(BlockList::iterator i=blocks.begin(); i!=cur_blocks_end; ++i)
-               if(i->block()==&block)
-               {
-                       if(++i!=cur_blocks_end)
-                               release_blocks_begin(i);
-                       return;
-               }
-}
-
 bool BlockAllocator::release_from(const Block &block)
 {
        bool have_sensor = false;