[6.0] b0fb538fe GC unused function

Reza Naghibi reza at naghibi.com
Wed Aug 19 13:17:06 UTC 2020


commit b0fb538fe22f60de83fd3271233b3312155554a8
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Sat Apr 20 16:42:23 2019 +0100

    GC unused function

diff --git a/lib/libvmod_directors/shard_dir.h b/lib/libvmod_directors/shard_dir.h
index e3a8b3128..1daae58ca 100644
--- a/lib/libvmod_directors/shard_dir.h
+++ b/lib/libvmod_directors/shard_dir.h
@@ -95,14 +95,6 @@ sharddir_backend(const struct sharddir *shardd, int id)
 	return (shardd->backend[id].backend);
 }
 
-static inline const char *
-sharddir_backend_ident(const struct sharddir *shardd, int host)
-{
-	assert(host >= 0);
-	assert(host < shardd->n_backend);
-	return (shardd->backend[host].ident);
-}
-
 #define SHDBG(flag, shardd, ...)					\
 	do {								\
 		if ((shardd)->debug_flags & (flag))			\


More information about the varnish-commit mailing list