summaryrefslogtreecommitdiff
path: root/lib/rbot/registry/dbm.rb
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2014-03-06 14:20:27 +0100
committerMatthias H <apoc@sixserv.org>2014-03-06 14:20:27 +0100
commit6211ffb416592782bc8103ab29d63189623b187c (patch)
tree54147dbf97403c8fd2bd9c8df3022e0d200f4600 /lib/rbot/registry/dbm.rb
parentf22c53c7ecbbdcd769ef92239a06e04ef3fff805 (diff)
[registry] small refactoring and added flush test
Diffstat (limited to 'lib/rbot/registry/dbm.rb')
-rw-r--r--lib/rbot/registry/dbm.rb11
1 files changed, 0 insertions, 11 deletions
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