From 3625aaeb665158618e9eecc6f84d3468d6ed908d Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Tue, 9 Dec 2014 18:37:29 -0800 Subject: [PATCH] remove vestigial `flatify` function --- src/jsx_to_term.erl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/jsx_to_term.erl b/src/jsx_to_term.erl index b23450c..d5db2c3 100644 --- a/src/jsx_to_term.erl +++ b/src/jsx_to_term.erl @@ -23,7 +23,7 @@ -module(jsx_to_term). --export([to_term/2, flatify/1]). +-export([to_term/2]). -export([init/1, handle_event/2]). -export([ start_term/1, @@ -242,14 +242,6 @@ get_value({Value, _Config}) -> Value; get_value(_) -> erlang:error(badarg). -%% we know the structure of our accumulator so we can safely -%% flatten like this -flatify(List) -> flatify(List, []). -%% head of list should always be [] -flatify([], Tail) -> Tail; -flatify([H, T], Tail) -> flatify(H, [T] ++ Tail). - - %% eunit tests