X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fblockallocator.cpp;h=fc414cc99825d25b94140438923b9ed9f46bfff7;hb=5c1ddd2f213af3fea15237e02f7da112c0abba36;hp=55f932e4233f0652f368a75f2fe9607654f9e125;hpb=51d3c122fb489f9e3f00060f885f00c1fae7ceb5;p=r2c2.git diff --git a/source/libr2c2/blockallocator.cpp b/source/libr2c2/blockallocator.cpp index 55f932e..fc414cc 100644 --- a/source/libr2c2/blockallocator.cpp +++ b/source/libr2c2/blockallocator.cpp @@ -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;