Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed Apr 11, 2024
1 parent 6ff599d commit 1390590
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/ra_log.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
last_written/1,
fetch/2,
fetch_term/2,
fetch_term_no_cache/2,
next_index/1,
snapshot_state/1,
set_snapshot_state/2,
Expand Down Expand Up @@ -645,16 +644,6 @@ fetch_term(Idx, #?MODULE{cache = Cache, reader = Reader0} = State0) ->
{Term, State0}
end.

-spec fetch_term_no_cache(ra_index(), state()) ->
{option(ra_term()), state()}.
fetch_term_no_cache(Idx, #?MODULE{last_index = LastIdx,
first_index = FirstIdx} = State0)
when Idx < FirstIdx orelse Idx > LastIdx ->
{undefined, State0};
fetch_term_no_cache(Idx, #?MODULE{reader = Reader0} = State0) ->
{Term, Reader} = ra_log_reader:fetch_term(Idx, Reader0),
{Term, State0#?MODULE{reader = Reader}}.

-spec snapshot_state(State :: state()) -> ra_snapshot:state().
snapshot_state(State) ->
State#?MODULE.?FUNCTION_NAME.
Expand Down

0 comments on commit 1390590

Please sign in to comment.