couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1055612 - /couchdb/trunk/src/couchdb/couch_doc.erl
Date Wed, 05 Jan 2011 20:05:26 GMT
Author: fdmanana
Date: Wed Jan  5 20:05:26 2011
New Revision: 1055612

URL: http://svn.apache.org/viewvc?rev=1055612&view=rev
Log:
Avoid unnecessary declaration of anonymous functions

Modified:
    couchdb/trunk/src/couchdb/couch_doc.erl

Modified: couchdb/trunk/src/couchdb/couch_doc.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_doc.erl?rev=1055612&r1=1055611&r2=1055612&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_doc.erl (original)
+++ couchdb/trunk/src/couchdb/couch_doc.erl Wed Jan  5 20:05:26 2011
@@ -507,26 +507,16 @@ mp_parse_doc(body_end, AccBytes) ->
     receive {get_doc_bytes, From} ->
         From ! {doc_bytes, lists:reverse(AccBytes)}
     end,
-    fun (Next) ->
-        mp_parse_atts(Next)
-    end.
+    fun mp_parse_atts/1.
 
 mp_parse_atts(eof) ->
     ok;
 mp_parse_atts({headers, _H}) ->
-    fun (Next) ->
-        mp_parse_atts(Next)
-    end;
+    fun mp_parse_atts/1;
 mp_parse_atts({body, Bytes}) ->
     receive {get_bytes, From} ->
         From ! {bytes, Bytes}
     end,
-    fun (Next) ->
-        mp_parse_atts(Next)
-    end;
+    fun mp_parse_atts/1;
 mp_parse_atts(body_end) ->
-    fun (Next) ->
-        mp_parse_atts(Next)
-    end.
-
-
+    fun mp_parse_atts/1.



Mime
View raw message