You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2011/08/25 21:07:34 UTC

svn commit: r1161703 - in /couchdb/branches/1.1.x/src/couchdb: couch_changes.erl couch_db.erl

Author: kocolosk
Date: Thu Aug 25 19:07:33 2011
New Revision: 1161703

URL: http://svn.apache.org/viewvc?rev=1161703&view=rev
Log:
Remove Style where we have no need for it

Modified:
    couchdb/branches/1.1.x/src/couchdb/couch_changes.erl
    couchdb/branches/1.1.x/src/couchdb/couch_db.erl

Modified: couchdb/branches/1.1.x/src/couchdb/couch_changes.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_changes.erl?rev=1161703&r1=1161702&r2=1161703&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_changes.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_changes.erl Thu Aug 25 19:07:33 2011
@@ -197,7 +197,6 @@ start_sending_changes(Callback, UserAcc,
 
 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
     } = Args,
     couch_db:changes_since(
         Db,
-        Style,
         StartSeq,
         fun changes_enumerator/2,
         [{dir, Dir}],

Modified: couchdb/branches/1.1.x/src/couchdb/couch_db.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_db.erl?rev=1161703&r1=1161702&r2=1161703&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_db.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_db.erl Thu Aug 25 19:07:33 2011
@@ -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),