You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2021/10/08 22:15:51 UTC
[couchdb] branch eliminate-warnings created (now 5262351)
This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a change to branch eliminate-warnings
in repository https://gitbox.apache.org/repos/asf/couchdb.git.
at 5262351 Eliminate compiler warnings
This branch includes the following new commits:
new 5262351 Eliminate compiler warnings
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb] 01/01: Eliminate compiler warnings
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a commit to branch eliminate-warnings
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 52623517eb28c558b592b5a22a0490ee16d393dc
Author: Jay Doane <ja...@apache.org>
AuthorDate: Fri Oct 8 13:13:07 2021 -0700
Eliminate compiler warnings
Delete unused function and remove unused variable.
---
src/couch/src/couch_db.erl | 2 +-
src/couch/test/eunit/couch_flags_config_tests.erl | 3 ---
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/couch/src/couch_db.erl b/src/couch/src/couch_db.erl
index 0646240..fdcf23e 100644
--- a/src/couch/src/couch_db.erl
+++ b/src/couch/src/couch_db.erl
@@ -575,7 +575,7 @@ get_compacted_seq(#db{}=Db) ->
get_compactor_pid(#db{compactor_pid = Pid}) ->
Pid.
-get_compactor_pid_sync(#db{main_pid=Pid}=Db) ->
+get_compactor_pid_sync(#db{main_pid=Pid}) ->
case gen_server:call(Pid, compactor_pid, infinity) of
CPid when is_pid(CPid) ->
CPid;
diff --git a/src/couch/test/eunit/couch_flags_config_tests.erl b/src/couch/test/eunit/couch_flags_config_tests.erl
index ed7df11..6fe2d58 100644
--- a/src/couch/test/eunit/couch_flags_config_tests.erl
+++ b/src/couch/test/eunit/couch_flags_config_tests.erl
@@ -81,9 +81,6 @@ test_id(Items, ExpectedResult) ->
lists:flatten(io_lib:format("~p -> ~p", [[P || {P, _} <- Items], ExpectedResult])).
-test_id(Items) ->
- lists:flatten(io_lib:format("~p", [[P || {P, _} <- Items]])).
-
test_config() ->
[
{"flag_foo||*", "true"},