remove unused name variables, noticed by naddy@
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
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);