You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/06/26 19:09:24 UTC
svn commit: r1139838 - /couchdb/trunk/src/couchdb/couch_doc.erl
Author: fdmanana
Date: Sun Jun 26 17:09:23 2011
New Revision: 1139838
URL: http://svn.apache.org/viewvc?rev=1139838&view=rev
Log:
Remove unused function from couch_doc
This function is not used anywhere.
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=1139838&r1=1139837&r2=1139838&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_doc.erl (original)
+++ couchdb/trunk/src/couchdb/couch_doc.erl Sun Jun 26 17:09:23 2011
@@ -21,7 +21,7 @@
-export([abort_multi_part_stream/1]).
-export([to_path/1]).
-export([mp_parse_doc/2]).
--export([with_ejson_body/1, with_bin_body/1]).
+-export([with_ejson_body/1]).
-include("couch_db.hrl").
@@ -573,12 +573,6 @@ abort_multi_part_stream(Parser, MonRef)
end.
-with_bin_body(#doc{body = Json} = Doc) when is_binary(Json) ->
- Doc;
-with_bin_body(#doc{body = EJson} = Doc) ->
- Doc#doc{body = couch_compress:compress(EJson)}.
-
-
with_ejson_body(#doc{body = Body} = Doc) when is_binary(Body) ->
Doc#doc{body = couch_compress:decompress(Body)};
with_ejson_body(#doc{body = {_}} = Doc) ->