From 6211ffb416592782bc8103ab29d63189623b187c Mon Sep 17 00:00:00 2001 From: Matthias H Date: Thu, 6 Mar 2014 14:20:27 +0100 Subject: [registry] small refactoring and added flush test --- lib/rbot/registry/dbm.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/rbot/registry/dbm.rb') diff --git a/lib/rbot/registry/dbm.rb b/lib/rbot/registry/dbm.rb index a13cb8ce..9c0304a9 100644 --- a/lib/rbot/registry/dbm.rb +++ b/lib/rbot/registry/dbm.rb @@ -23,21 +23,10 @@ class Registry @registry ||= DBM.open(@filename, 0666, DBM::WRCREAT) end - def flush - return if !@registry - # ruby dbm has no flush, so we close/reopen :( - close - registry - end - def dbexists? not Dir.glob(@filename + '.*').empty? end - def optimize - # unsupported! - end - end end # Registry -- cgit v1.2.3