Skip to content

Commit

Permalink
Fixed unused vars warnings
Browse files Browse the repository at this point in the history
Also removed commented out code.
  • Loading branch information
lordnull committed Aug 6, 2012
1 parent 06103bb commit 0b16d5e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lager_format.erl
Original file line number Diff line number Diff line change
Expand Up @@ -222,20 +222,16 @@ control2($w, [A], F, Adj, P, Pad, _Enc, L) ->
Term = lager_trunc_io:fprint(A, L, [{lists_as_strings, false}]),
Res = term(Term, F, Adj, P, Pad),
{Res, lists:flatlength(Res)};
control2($p, [A], F, Adj, P, Pad, _Enc, L) ->
control2($p, [A], _F, _Adj, _P, _Pad, _Enc, L) ->
Term = lager_trunc_io:fprint(A, L, [{lists_as_strings, true}]),
%Res = term(Term, F, Adj, P, Pad),
%{Res, lists:flatlength(Res)};
{Term, lists:flatlength(Term)};
control2($W, [A,Depth], F, Adj, P, Pad, _Enc, L) when is_integer(Depth) ->
Term = lager_trunc_io:fprint(A, L, [{depth, Depth}, {lists_as_strings, false}]),
Res = term(Term, F, Adj, P, Pad),
{Res, lists:flatlength(Res)};
control2($P, [A,Depth], F, Adj, P, Pad, _Enc, L) when is_integer(Depth) ->
control2($P, [A,Depth], _F, _Adj, _P, _Pad, _Enc, L) when is_integer(Depth) ->
Term = lager_trunc_io:fprint(A, L, [{depth, Depth}, {lists_as_strings, true}]),
{Term, lists:flatlength(Term)};
%Res = term(Term, F, Adj, P, Pad),
%{Res, lists:flatlength(Res)};
control2($s, [L0], F, Adj, P, Pad, latin1, L) ->
List = lager_trunc_io:fprint(maybe_flatten(L0), L, [{force_strings, true}]),
Res = string(List, F, Adj, P, Pad),
Expand Down

0 comments on commit 0b16d5e

Please sign in to comment.