strip out checks for repeated keys in generated json. no one cares

about repeated keys
This commit is contained in:
alisdair sullivan 2014-12-07 07:59:51 +00:00
parent d2a7064e4e
commit 9842a00b4d
5 changed files with 28 additions and 112 deletions

View file

@ -63,12 +63,14 @@ parse_config([unescaped_jsonp|Rest], Config) ->
parse_config(Rest, Config#config{unescaped_jsonp=true});
parse_config([dirty_strings|Rest], Config) ->
parse_config(Rest, Config#config{dirty_strings=true});
%% retained for backwards compat, now does nothing however
parse_config([repeat_keys|Rest], Config) ->
parse_config(Rest, Config#config{repeat_keys=true});
parse_config(Rest, Config);
parse_config([uescape|Rest], Config) ->
parse_config(Rest, Config#config{uescape=true});
parse_config([strict|Rest], Config) ->
parse_config(Rest, Config#config{strict_comments=true,
parse_config(Rest, Config#config{
strict_comments=true,
strict_commas=true,
strict_utf8=true,
strict_single_quotes=true,
@ -190,7 +192,6 @@ config_test_() ->
escaped_strings = true,
unescaped_jsonp = true,
dirty_strings = true,
repeat_keys = true,
strict_comments = true,
strict_commas = true,
strict_utf8 = true,
@ -274,7 +275,6 @@ config_to_list_test_() ->
escaped_strings,
unescaped_jsonp,
dirty_strings,
repeat_keys,
stream,
uescape,
strict
@ -284,7 +284,6 @@ config_to_list_test_() ->
escaped_strings = true,
unescaped_jsonp = true,
dirty_strings = true,
repeat_keys = true,
strict_comments = true,
strict_utf8 = true,
strict_single_quotes = true,