Blame SOURCES/autofs-5.1.7-remove-unused-function-master_submount_list_empty.patch

96dc52
autofs-5.1.7 - remove unused function master_submount_list_empty()
96dc52
96dc52
From: Ian Kent <raven@themaw.net>
96dc52
96dc52
This function is not used anywhere now, remove it.
96dc52
96dc52
Signed-off-by: Ian Kent <raven@themaw.net>
96dc52
---
96dc52
 CHANGELOG        |    1 +
96dc52
 daemon/master.c  |   12 ------------
96dc52
 include/master.h |    1 -
96dc52
 3 files changed, 1 insertion(+), 13 deletions(-)
96dc52
96dc52
diff --git a/CHANGELOG b/CHANGELOG
96dc52
index 1c9e2a2d..002da042 100644
96dc52
--- a/CHANGELOG
96dc52
+++ b/CHANGELOG
96dc52
@@ -45,6 +45,7 @@
96dc52
 - remove redundant local var from sun_mount().
96dc52
 - use mount_fullpath() in one spot in parse_mount().
96dc52
 - pass root length to mount_fullpath().
96dc52
+- remove unused function master_submount_list_empty().
96dc52
 
96dc52
 25/01/2021 autofs-5.1.7
96dc52
 - make bind mounts propagation slave by default.
96dc52
diff --git a/daemon/master.c b/daemon/master.c
96dc52
index 022fb9dd..af9cd79f 100644
96dc52
--- a/daemon/master.c
96dc52
+++ b/daemon/master.c
96dc52
@@ -1119,18 +1119,6 @@ int master_read_master(struct master *master, time_t age)
96dc52
 	return 1;
96dc52
 }
96dc52
 
96dc52
-int master_submount_list_empty(struct autofs_point *ap)
96dc52
-{
96dc52
-	int res = 0;
96dc52
-
96dc52
-	mounts_mutex_lock(ap);
96dc52
-	if (list_empty(&ap->submounts))
96dc52
-		res = 1;
96dc52
-	mounts_mutex_unlock(ap);
96dc52
-
96dc52
-	return res;
96dc52
-}
96dc52
-
96dc52
 int master_notify_submount(struct autofs_point *ap, const char *path, enum states state)
96dc52
 {
96dc52
 	struct mnt_list *this, *sbmnt;
96dc52
diff --git a/include/master.h b/include/master.h
96dc52
index 0806b372..2d727943 100644
96dc52
--- a/include/master.h
96dc52
+++ b/include/master.h
96dc52
@@ -116,7 +116,6 @@ void master_free_mapent_sources(struct master_mapent *, unsigned int);
96dc52
 void master_free_mapent(struct master_mapent *);
96dc52
 struct master *master_new(const char *, unsigned int, unsigned int);
96dc52
 int master_read_master(struct master *, time_t);
96dc52
-int master_submount_list_empty(struct autofs_point *ap);
96dc52
 int master_notify_submount(struct autofs_point *, const char *path, enum states);
96dc52
 void master_notify_state_change(struct master *, int);
96dc52
 int master_mount_mounts(struct master *, time_t);