You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2026/03/22 18:01:32 UTC
(couchdb) 10/11: remove unused function
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch nouveau-update-bundle
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 06d8f4e5513d69ab347e3daac03e7383b2106d72
Author: Robert Newson <rn...@apache.org>
AuthorDate: Sat Mar 21 23:31:42 2026 +0000
remove unused function
---
src/nouveau/src/nouveau_index_updater.erl | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/src/nouveau/src/nouveau_index_updater.erl b/src/nouveau/src/nouveau_index_updater.erl
index 10d4144f0..763e12d03 100644
--- a/src/nouveau/src/nouveau_index_updater.erl
+++ b/src/nouveau/src/nouveau_index_updater.erl
@@ -18,7 +18,7 @@
-include("nouveau.hrl").
%% public api
--export([outdated/1, get_db_info/1]).
+-export([get_db_info/1]).
%% callbacks
-export([update/1]).
@@ -47,16 +47,6 @@
batch
}).
-outdated(#index{} = Index) ->
- case open_or_create_index(Index) of
- {ok, #{} = Info} ->
- #{<<"update_seq">> := IndexUpdateSeq, <<"purge_seq">> := IndexPurgeSeq} = Info,
- {DbUpdateSeq, DbPurgeSeq} = get_db_info(Index),
- DbUpdateSeq > IndexUpdateSeq orelse DbPurgeSeq > IndexPurgeSeq;
- {error, Reason} ->
- {error, Reason}
- end.
-
update(#index{} = Index) ->
{ok, Db} = couch_db:open_int(Index#index.dbname, []),
try