소스 검색

Fixed unused vars warnings

Also removed commented out code.
pull/64/head
Micah Warren 13 년 전
부모
커밋
0b16d5ebcd
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. +2
    -6
      src/lager_format.erl

+ 2
- 6
src/lager_format.erl 파일 보기

@ -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),

불러오는 중...
취소
저장