[PATCH 3/8] Remove some unnecessary #ifndef WIN32

Ladislav Michl <[email protected]> Mon, 3 Dec 2018 10:37:43 +0100
Newsgroups gmane.linux.drivers.gnokii
Message-ID <20181203093743.GD18391@lenoch>
From: Fabrizio Gennari <[email protected]>

This code works just fine under Windows, so compile
it here as well.
---
 gnokii/gnokii-calendar.c | 2 --
 gnokii/gnokii-monitor.c  | 3 ---
 2 files changed, 5 deletions(-)

diff --git a/gnokii/gnokii-calendar.c b/gnokii/gnokii-calendar.c
index e32bf769..10236bae 100644
--- a/gnokii/gnokii-calendar.c
+++ b/gnokii/gnokii-calendar.c
@@ -264,7 +264,6 @@ gn_error writecalendarnote(int argc, char *argv[], gn_data *data, struct gn_stat
 		rewind(f);
 		error = gn_ical2calnote(f, &calnote, i);
 
-#ifndef WIN32
 		if (error == GN_ERR_NOTIMPLEMENTED) {
 			switch (gn_vcal_file_event_read(optarg, &calnote, i)) {
 			case 0:
@@ -275,7 +274,6 @@ gn_error writecalendarnote(int argc, char *argv[], gn_data *data, struct gn_stat
 				break;
 			}
 		}
-#endif
 		if (error != GN_ERR_NONE) {
 			/* when reading until 'end' it's not an error if it tried to read a non existent note */
 			if ((last_location == INT_MAX) && (error == GN_ERR_EMPTYLOCATION)) {
diff --git a/gnokii/gnokii-monitor.c b/gnokii/gnokii-monitor.c
index 7fde06c5..30aba457 100644
--- a/gnokii/gnokii-monitor.c
+++ b/gnokii/gnokii-monitor.c
@@ -109,8 +109,6 @@ static gn_error readcbmessage(gn_cb_message *message)
 
 static void displaycall(int call_id)
 {
-/* FIXME!!! */
-#ifndef WIN32
 	gn_call *call;
 	struct timeval now, delta;
 	char *s;
@@ -148,7 +146,6 @@ static void displaycall(int call_id)
 	fprintf(stdout, _("CALL%d: %s %s (%s) (callid: %d, duration: %d sec)\n"),
 		call_id, s, call->remote_number, call->remote_name,
 		call->call_id, (int)delta.tv_sec);
-#endif
 }
 
 /* Same code is for getnetworkinfo */
-- 
2.20.0.rc1