From ceb56ada3f60fd7ba5cf44231489dcdec4af342e Mon Sep 17 00:00:00 2001
From: Etienne Brateau <etienne.brateau@ensiie.fr>
Date: Wed, 20 Feb 2019 21:58:52 +0100
Subject: [PATCH] Remove write only host variable

---
 include/log_action.h | 7 -------
 src/log.c            | 1 -
 src/loged.c          | 1 -
 3 files changed, 9 deletions(-)

diff --git a/include/log_action.h b/include/log_action.h
index d0a1bd0..32e9924 100644
--- a/include/log_action.h
+++ b/include/log_action.h
@@ -311,13 +311,6 @@ typedef struct log_action_t
 
 	char *homedirname;
 
-	enum
-	{
-		log_host_log,
-		log_host_loged,
-		log_host_3,
-		log_host_4
-	} host;
 	struct log_tool *toolbase;
 
 	log_hooks_t hook;
diff --git a/src/log.c b/src/log.c
index d48c20e..6373adb 100644
--- a/src/log.c
+++ b/src/log.c
@@ -11410,7 +11410,6 @@ static void initialize()
 	initmenus();
 	gg.funcarg = (char *)Malloc(256);
 	*gg.funcarg = '\0';
-	gg.host = log_host_log;
 	gg.toolbase = NULL;
 	inithooks();
 	gg.simstate = simst_null;
diff --git a/src/loged.c b/src/loged.c
index da10fd5..1a02f03 100644
--- a/src/loged.c
+++ b/src/loged.c
@@ -6738,7 +6738,6 @@ int main(int argc, char * argv[])
   newsimtype = 0;
   firstpin = 1;
   initscreen();
-  gg.host = log_host_loged;
   gg.traceflag = false;
   gg.traceopen = false;
   gg.dumpopen = false;
-- 
GitLab