You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2014/08/28 19:30:18 UTC
[18/50] [abbrv] couch-replicator commit: updated
refs/heads/1963-eunit-bigcouch to 3cf0b13
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/1963-eunit-bigcouch
Commit: a18aa43c6a49fd4d43aebc0a58e7d724e6fe277a
Parents: 353f51f
Author: Paul J. Davis <pa...@gmail.com>
Authored: Wed Dec 11 10:11:14 2013 -0600
Committer: Robert Newson <rn...@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).