Commits

Anonymous committed 9468ac0

superfluous function

Comments (0)

Files changed (1)

src/webmachine_decision_core.erl

         {stream, StreamBody} ->
             {stream, make_encoder_stream(Encoder, Charsetter, StreamBody)};
         {writer, BodyFun} ->
-            {writer, make_writer_stream(Encoder, Charsetter, BodyFun)};
+            {writer, {Encoder, Charsetter, BodyFun}};
         _ ->
             Encoder(Charsetter(iolist_to_binary(Body)))
     end.
     {Encoder(Charsetter(Body)),
      fun() -> make_encoder_stream(Encoder, Charsetter, Next()) end}.
 
-make_writer_stream(Encoder, Charsetter, BodyFun) ->
-    {Encoder, Charsetter, BodyFun}.
-
 choose_encoding(AccEncHdr) ->
     Encs = [Enc || {Enc,_Fun} <- resource_call(encodings_provided)],
     case webmachine_util:choose_encoding(Encs, AccEncHdr) of