diff --git a/block.h b/block.h index f2cd161..c1e6304 100644 --- a/block.h +++ b/block.h @@ -149,12 +149,6 @@ namespace persistent_data { typename validator::ptr v = typename validator::ptr(new noop_validator())); - // If you aren't using a superblock, then this flush method - // will write all dirty data. Throws if any locks are - // held. - // FIXME: do we need this? - void flush(); - block_address get_nr_blocks() const; private: diff --git a/block.tcc b/block.tcc index ecdd226..d0ed852 100644 --- a/block.tcc +++ b/block.tcc @@ -157,15 +157,6 @@ block_manager::superblock_zero(block_address location, return write_ref(b); } -template -void -block_manager::flush() -{ - if (lock_count_ > 0) - throw runtime_error("asked to flush while locks are still held"); - ::fsync(fd_); -} - template void block_manager::read_buffer(block_address b, block_manager::buffer &buffer) const