Commit 26ac815fc44811dc1fa663baa02c1a65836dd649

Tracey Emery 2021-08-27T19:48:23

remove unused name variables, noticed by naddy@

diff --git a/libexec/got-read-gotconfig/gotconfig.h b/libexec/got-read-gotconfig/gotconfig.h
index 9f8fd66..bd2ea59 100644
--- a/libexec/got-read-gotconfig/gotconfig.h
+++ b/libexec/got-read-gotconfig/gotconfig.h
@@ -16,7 +16,6 @@
  */
 
 struct fetch_repo {
-	char	*fetch_name;
 	char	*fetch_repository;
 	char	*fetch_server;
 	char	*fetch_protocol;
@@ -25,7 +24,6 @@ struct fetch_repo {
 };
 
 struct send_repo {
-	char	*send_name;
 	char	*send_repository;
 	char	*send_server;
 	char	*send_protocol;
diff --git a/libexec/got-read-gotconfig/parse.y b/libexec/got-read-gotconfig/parse.y
index c3899d0..32725fd 100644
--- a/libexec/got-read-gotconfig/parse.y
+++ b/libexec/got-read-gotconfig/parse.y
@@ -839,13 +839,11 @@ gotconfig_free(struct gotconfig *conf)
 		remote = TAILQ_FIRST(&conf->remotes);
 		TAILQ_REMOVE(&conf->remotes, remote, entry);
 		if (remote->fetch_repo != NULL) {
-			free(remote->fetch_repo->fetch_name);
 			free(remote->fetch_repo->fetch_repository);
 			free(remote->fetch_repo->fetch_server);
 			free(remote->fetch_repo->fetch_protocol);
 		}
 		if (remote->send_repo != NULL) {
-			free(remote->send_repo->send_name);
 			free(remote->send_repo->send_repository);
 			free(remote->send_repo->send_server);
 			free(remote->send_repo->send_protocol);