You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2017/05/10 16:03:09 UTC

[couchdb] 03/05: Removed unused couch_att:copy/2

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch COUCHDB-3287-pluggable-storage-engines
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit e177e1079d13c80018f1538c4970e50ee3a44c72
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Wed May 10 10:26:28 2017 -0500

    Removed unused couch_att:copy/2
---
 src/couch/src/couch_att.erl | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/couch/src/couch_att.erl b/src/couch/src/couch_att.erl
index e6ed7df..bd53086 100644
--- a/src/couch/src/couch_att.erl
+++ b/src/couch/src/couch_att.erl
@@ -18,8 +18,7 @@
     fetch/2,
     store/2,
     store/3,
-    transform/3,
-    copy/2
+    transform/3
 ]).
 
 -export([
@@ -234,14 +233,6 @@ transform(Field, Fun, Att) ->
     store(Field, NewValue, Att).
 
 
-copy(Att, DstStream) ->
-    [{stream, SrcStream}, AttLen, OldMd5] = fetch([data, att_len, md5], Att),
-    ok = couch_stream:copy(SrcStream, DstStream),
-    {NewStream, AttLen, _, NewMd5, _} = couch_stream:close(DstStream),
-    couch_util:check_md5(OldMd5, NewMd5),
-    store(data, {stream, NewStream}, Att).
-
-
 is_stub(Att) ->
     stub == fetch(data, Att).
 

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.