Permalink
Browse files

Revert "Add functions that return functions that folds over a snapshot."

Fixes: az663

This reverts commit 08834d9.
  • Loading branch information...
1 parent 97609f4 commit 5553740b6da7db81b9e12b607272b5b75f4ea753 Kelly McLaughlin committed Sep 12, 2011
Showing with 0 additions and 16 deletions.
  1. +0 −16 src/eleveldb.erl
View
@@ -28,8 +28,6 @@
write/3,
fold/4,
fold_keys/4,
- folder/4,
- key_folder/4,
status/2,
destroy/2,
repair/2,
@@ -136,27 +134,13 @@ fold(Ref, Fun, Acc0, Opts) ->
{ok, Itr} = iterator(Ref, Opts),
do_fold(Itr, Fun, Acc0, Opts).
--spec folder(db_ref(), fold_fun(), any(), read_options()) -> fun().
-folder(Ref, Fun, Acc, Opts) ->
- {ok, Itr} = iterator(Ref, Opts),
- fun() ->
- do_fold(Itr, Fun, Acc, Opts)
- end.
-
-type fold_keys_fun() :: fun((Key::binary(), any()) -> any()).
-spec fold_keys(db_ref(), fold_keys_fun(), any(), read_options()) -> any().
fold_keys(Ref, Fun, Acc0, Opts) ->
{ok, Itr} = iterator(Ref, Opts, keys_only),
do_fold(Itr, Fun, Acc0, Opts).
--spec key_folder(db_ref(), fold_keys_fun(), any(), read_options()) -> fun().
-key_folder(Ref, Fun, Acc, Opts) ->
- {ok, Itr} = iterator(Ref, Opts, keys_only),
- fun() ->
- do_fold(Itr, Fun, Acc, Opts)
- end.
-
-spec status(db_ref(), Key::binary()) -> {ok, binary()} | error.
status(_Ref, _Key) ->
erlang:nif_error({error, not_loaded}).

0 comments on commit 5553740

Please sign in to comment.