git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/4] grep.h: remove unused grep_threads_ok() declaration

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 1, 2021, 10:37 UTC
Message-ID
<patch-2.4-1aa29533277-20210928T125228Z-avarab@gmail.com>
In-Reply-To
<cover-0.4-00000000000-20210928T125228Z-avarab@gmail.com>

This function was removed in 0579f91dd74 (grep: enable threading with -p and -W using lazy attribute lookup, 2011-12-12), but not its corresponding *.h declaration.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 grep.h | 1 -
 1 file changed, 1 deletion(-)
diff --git a/grep.h b/grep.h
index 128007db655..a68dce5dfa5 100644
--- a/grep.h
+++ b/grep.h
@@ -223,7 +223,6 @@ void grep_source_load_driver(struct grep_source *gs,
 int grep_source(struct grep_opt *opt, struct grep_source *gs);
 
 struct grep_opt *grep_opt_dup(const struct grep_opt *opt);
-int grep_threads_ok(const struct grep_opt *opt);
 
 /*
  * Mutex used around access to the attributes machinery if
-- 
2.33.0.1340.ge9f77250f2b
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 3 of 6 in “*.h: remove dead function declarations”
  1. 0/4 *.h: remove dead function declarationsÆvar Arnfjörð Bjarmason, Oct 1, 2021
  2. 1/4 builtin.h: remove cmd_tar_tree() declarationÆvar Arnfjörð Bjarmason, Oct 1, 2021
  3. 2/4 grep.h: remove unused grep_threads_ok() declarationÆvar Arnfjörð Bjarmason, Oct 1, 2021
  4. 3/4 log-tree.h: remove unused function declarationsÆvar Arnfjörð Bjarmason, Oct 1, 2021
  5. 4/4 config.h: remove unused git_config_get_untracked_cache() declarationÆvar Arnfjörð Bjarmason, Oct 1, 2021
  6. Junio C HamanoOct 1, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.