From 52623517eb28c558b592b5a22a0490ee16d393dc Mon Sep 17 00:00:00 2001 From: Jay Doane Date: Fri, 8 Oct 2021 13:13:07 -0700 Subject: 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 0646240bd..fdcf23e1b 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 ed7df1123..6fe2d5860 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"}, -- cgit v1.2.1