diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2011-08-25 19:07:33 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2011-08-25 19:07:33 +0000 |
commit | 595ceeb8be4b5fea4bf40264cf294cf10f63eb3e (patch) | |
tree | fed912175a4fb76f7312607e5fd42cb5769964d9 /src/couchdb | |
parent | 9472aff5d8caca9fb973a55bc5eccae2cfb63c1e (diff) |
Remove Style where we have no need for it
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1161703 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_changes.erl | 2 | ||||
-rw-r--r-- | src/couchdb/couch_db.erl | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/couchdb/couch_changes.erl b/src/couchdb/couch_changes.erl index 6eb6f7e1..2be37797 100644 --- a/src/couchdb/couch_changes.erl +++ b/src/couchdb/couch_changes.erl @@ -197,7 +197,6 @@ start_sending_changes(Callback, UserAcc, ResponseType) -> send_changes(Args, Callback, UserAcc, Db, StartSeq, Prepend) -> #changes_args{ - style = Style, include_docs = IncludeDocs, conflicts = Conflicts, limit = Limit, @@ -207,7 +206,6 @@ send_changes(Args, Callback, UserAcc, Db, StartSeq, Prepend) -> } = Args, couch_db:changes_since( Db, - Style, StartSeq, fun changes_enumerator/2, [{dir, Dir}], diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl index 3d8395f4..b9b48d7d 100644 --- a/src/couchdb/couch_db.erl +++ b/src/couchdb/couch_db.erl @@ -25,7 +25,7 @@ -export([start_link/3,open_doc_int/3,ensure_full_commit/1]). -export([set_security/2,get_security/1]). -export([init/1,terminate/2,handle_call/3,handle_cast/2,code_change/3,handle_info/2]). --export([changes_since/5,changes_since/6,read_doc/2,new_revid/1]). +-export([changes_since/4,changes_since/5,read_doc/2,new_revid/1]). -export([check_is_admin/1, check_is_reader/1]). -export([reopen/1]). @@ -944,10 +944,10 @@ enum_docs_reduce_to_count(Reds) -> fun couch_db_updater:btree_by_id_reduce/2, Reds), Count. -changes_since(Db, Style, StartSeq, Fun, Acc) -> - changes_since(Db, Style, StartSeq, Fun, [], Acc). +changes_since(Db, StartSeq, Fun, Acc) -> + changes_since(Db, StartSeq, Fun, [], Acc). -changes_since(Db, _Style, StartSeq, Fun, Options, Acc) -> +changes_since(Db, StartSeq, Fun, Options, Acc) -> Wrapper = fun(DocInfo, _Offset, Acc2) -> Fun(DocInfo, Acc2) end, {ok, _LastReduction, AccOut} = couch_btree:fold(Db#db.docinfo_by_seq_btree, Wrapper, Acc, [{start_key, StartSeq + 1}] ++ Options), |