[PATCH 0/4] *.h: remove dead function declarations

STALE1798d

5 messages, 1 author, 2021-10-01 · open the first message on its own page

[PATCH 0/4] *.h: remove dead function declarations

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2021-10-01 10:37:57

A trivial series to remove some long-dead code, the oldest is
something we've been carrying since 2006!

Ævar Arnfjörð Bjarmason (4):
  builtin.h: remove cmd_tar_tree() declaration
  grep.h: remove unused grep_threads_ok() declaration
  log-tree.h: remove unused function declarations
  config.h: remove unused git_config_get_untracked_cache() declaration

 builtin.h  | 1 -
 config.h   | 1 -
 grep.h     | 1 -
 log-tree.h | 2 --
 4 files changed, 5 deletions(-)

-- 
2.33.0.1340.ge9f77250f2b

[PATCH 1/4] builtin.h: remove cmd_tar_tree() declaration

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2021-10-01 10:38:06

The cmd_tar_tree() function itself was removed in
925ceccf050 (tar-tree: remove deprecated command, 2013-11-10).

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
---
 builtin.h | 1 -
 1 file changed, 1 deletion(-)
diff --git a/builtin.h b/builtin.h
index 16ecd5586f0..8a58743ed63 100644
--- a/builtin.h
+++ b/builtin.h
@@ -225,7 +225,6 @@ int cmd_submodule__helper(int argc, const char **argv, const char *prefix);
 int cmd_switch(int argc, const char **argv, const char *prefix);
 int cmd_symbolic_ref(int argc, const char **argv, const char *prefix);
 int cmd_tag(int argc, const char **argv, const char *prefix);
-int cmd_tar_tree(int argc, const char **argv, const char *prefix);
 int cmd_unpack_file(int argc, const char **argv, const char *prefix);
 int cmd_unpack_objects(int argc, const char **argv, const char *prefix);
 int cmd_update_index(int argc, const char **argv, const char *prefix);
-- 
2.33.0.1340.ge9f77250f2b

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

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2021-10-01 10:38:08

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 <redacted>
---
 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

[PATCH 3/4] log-tree.h: remove unused function declarations

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2021-10-01 10:38:09

The init_log_tree_opt() and log_tree_opt_parse() functions were
removed in cd2bdc53094 (Common option parsing for "git log --diff" and
friends, 2006-04-14), but not their corresponding *.h declaration.

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
---
 log-tree.h | 2 --
 1 file changed, 2 deletions(-)
diff --git a/log-tree.h b/log-tree.h
index 1e8c91dbf21..e7e4641cf83 100644
--- a/log-tree.h
+++ b/log-tree.h
@@ -14,10 +14,8 @@ struct decoration_filter {
 };
 
 int parse_decorate_color_config(const char *var, const char *slot_name, const char *value);
-void init_log_tree_opt(struct rev_info *);
 int log_tree_diff_flush(struct rev_info *);
 int log_tree_commit(struct rev_info *, struct commit *);
-int log_tree_opt_parse(struct rev_info *, const char **, int);
 void show_log(struct rev_info *opt);
 void format_decorations_extended(struct strbuf *sb, const struct commit *commit,
 			     int use_color,
-- 
2.33.0.1340.ge9f77250f2b

[PATCH 4/4] config.h: remove unused git_config_get_untracked_cache() declaration

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2021-10-01 10:38:11

This function was removed in ad0fb659993 (repo-settings: parse
core.untrackedCache, 2019-08-13), but not its corresponding *.h entry.

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
---
 config.h | 1 -
 1 file changed, 1 deletion(-)
diff --git a/config.h b/config.h
index 147f5e0490e..7378fc165fb 100644
--- a/config.h
+++ b/config.h
@@ -609,7 +609,6 @@ int git_config_get_maybe_bool(const char *key, int *dest);
 int git_config_get_pathname(const char *key, const char **dest);
 
 int git_config_get_index_threads(int *dest);
-int git_config_get_untracked_cache(void);
 int git_config_get_split_index(void);
 int git_config_get_max_percent_split_change(void);
 int git_config_get_fsmonitor(void);
-- 
2.33.0.1340.ge9f77250f2b
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help