remove unused variables

This commit is contained in:
alisdair sullivan 2012-05-23 22:30:02 -07:00
parent 656a2777d8
commit c15623a767
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@ fix_key(Key) when is_atom(Key) -> fix_key(atom_to_binary(Key, utf8));
fix_key(Key) when is_binary(Key) -> Key.
clean_string(Bin, Opts=#opts{dirty_strings=true}) -> Bin;
clean_string(Bin, #opts{dirty_strings=true}) -> Bin;
clean_string(Bin, Opts) ->
case Opts#opts.replaced_bad_utf8 orelse Opts#opts.escaped_strings of
true -> clean(Bin, [], Opts)

View file

@ -161,7 +161,7 @@ fix_key(Key) when is_atom(Key) -> fix_key(atom_to_binary(Key, utf8));
fix_key(Key) when is_binary(Key) -> Key.
clean_string(Bin, Opts=#opts{dirty_strings=true}) -> Bin;
clean_string(Bin, #opts{dirty_strings=true}) -> Bin;
clean_string(Bin, Opts) ->
case Opts#opts.replaced_bad_utf8 orelse Opts#opts.escaped_strings of
true -> clean(Bin, [], Opts)