summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ht.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ht.erl b/src/ht.erl
index e3751ea..45646ce 100644
--- a/src/ht.erl
+++ b/src/ht.erl
@@ -88,7 +88,7 @@ path(I, V) ->
consistency(V1, V2) ->
call(?MODULE, {consistency, V1, V2}).
leaf_hash(Data) ->
- call(?MODULE, {leaf_hash, Data}).
+ mkleafhash(Data).
%% Testing and debugging.
testing_get_state() ->
call(?MODULE, testing_get_state).
@@ -133,8 +133,6 @@ handle_call(root, _From, State) ->
handle_call({root, Version}, _From, State) ->
{NewState, Hash} = head(State, Version),
{reply, Hash, NewState};
-handle_call({leaf_hash, Data}, _From, State) ->
- {reply, mkleafhash(Data), State};
handle_call({path, Index, Version}, _From, State) ->
{NewState, Path} = path(State, Index, Version),
{reply, Path, NewState};