Skip to content

Commit

Permalink
Fixing unused var warnings in enet_bertrpc_fsm.
Browse files Browse the repository at this point in the history
  • Loading branch information
archaelus committed Jan 29, 2012
1 parent 7bd8359 commit 829fa91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/enet_bertrpc_fsm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ update({{noreply},_,_} = Resp,
case queue:out(Q0) of
{{value, Cmd = #cmd{type=cast}}, Q} ->
complete_op(Cmd#cmd{resp=Resp}, FSM#bertrpc{current=Q});
{{value, Cmd}, Q} ->
{{value, Cmd}, _Q} ->
erlang:error({incorrect_response, Cmd, Resp});
%% error -- incorrect request for response
%% FSM#bertrpc{current=Q};
{empty, Q} ->
{empty, _Q} ->
%% error -- no request for response
%%FSM#bertrpc{current=Q}
erlang:error({no_request, Resp})
Expand All @@ -54,11 +54,11 @@ update({{reply, _},_,_} = Resp,
case queue:out(Q0) of
{{value, Cmd = #cmd{type=call}}, Q} ->
complete_op(Cmd#cmd{resp=Resp}, FSM#bertrpc{current=Q});
{{value, Cmd}, Q} ->
{{value, Cmd}, _Q} ->
erlang:error({incorrect_response, Cmd, Resp});
%% error -- incorrect request for response
%% FSM#bertrpc{current=Q};
{empty, Q} ->
{empty, _Q} ->
%% error -- no request for response
%%FSM#bertrpc{current=Q}
erlang:error({no_request, Resp})
Expand Down

0 comments on commit 829fa91

Please sign in to comment.