diff options
-rw-r--r-- | src/ht.erl | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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}; |