Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Fixes: az663

This reverts commit 08834d9.
  • Loading branch information...
commit 5553740b6da7db81b9e12b607272b5b75f4ea753 1 parent 97609f4
@kellymclaughlin kellymclaughlin authored
Showing with 0 additions and 16 deletions.
  1. +0 −16 src/eleveldb.erl
View
16 src/eleveldb.erl
@@ -28,8 +28,6 @@
write/3,
fold/4,
fold_keys/4,
- folder/4,
- key_folder/4,
status/2,
destroy/2,
repair/2,
@@ -136,13 +134,6 @@ 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().
@@ -150,13 +141,6 @@ 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}).
Please sign in to comment.
Something went wrong with that request. Please try again.