couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [19/37] couch-replicator commit: updated refs/heads/master to aafb5f9
Date Thu, 28 Aug 2014 12:15:50 GMT
Remove unused unpack_seqs function

This is no longer needed now that we're not calculating progress based
off update_seq values.

BugzId: 26015


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/a18aa43c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/a18aa43c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/a18aa43c

Branch: refs/heads/master
Commit: a18aa43c6a49fd4d43aebc0a58e7d724e6fe277a
Parents: 353f51f
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Wed Dec 11 10:11:14 2013 -0600
Committer: Robert Newson <rnewson@apache.org>
Committed: Tue Jul 29 15:17:52 2014 +0100

----------------------------------------------------------------------
 src/couch_replicator.erl | 10 ----------
 1 file changed, 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/a18aa43c/src/couch_replicator.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator.erl b/src/couch_replicator.erl
index 006770c..0c06145 100644
--- a/src/couch_replicator.erl
+++ b/src/couch_replicator.erl
@@ -934,13 +934,3 @@ rep_stats(State) ->
         {doc_write_failures, couch_replicator_stats:doc_write_failures(Stats)},
         {checkpointed_source_seq, CommittedSeq}
     ].
-
-unpack_seq(Seq) when is_number(Seq) ->
-    Seq;
-unpack_seq([SeqNum, _]) ->
-    SeqNum;
-unpack_seq(Seq) when is_binary(Seq) ->
-    Pattern = "^\\[?(?<seqnum>[0-9]+)",
-    Options = [{capture, [seqnum], list}],
-    {match, [SeqNum]} = re:run(Seq, Pattern, Options),
-    list_to_integer(SeqNum).


Mime
View raw message