[geany/geany] d2740f: Remove unnecessary code when reading IPC socket port on Windows

Enrico Tröger git-noreply at xxxxx
Sun Nov 29 13:04:14 UTC 2020


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sun, 29 Nov 2020 13:04:14 UTC
Commit:      d2740f21feb84b6f951398c6f683674b2b56bfed
             https://github.com/geany/geany/commit/d2740f21feb84b6f951398c6f683674b2b56bfed

Log Message:
-----------
Remove unnecessary code when reading IPC socket port on Windows


Modified Paths:
--------------
    src/libmain.c

Modified: src/libmain.c
8 lines changed, 0 insertions(+), 8 deletions(-)
===================================================================
@@ -403,14 +403,6 @@ static gint get_windows_socket_port(void)
 	GKeyFile *config = g_key_file_new();
 	gint port_number;
 
-	if (! g_file_test(configfile, G_FILE_TEST_IS_REGULAR))
-	{
-		geany_debug(
-			"No user config file found, use default TCP port (%d).",
-			SOCKET_WINDOWS_REMOTE_CMD_PORT);
-		g_free(configfile);
-		return SOCKET_WINDOWS_REMOTE_CMD_PORT;
-	}
 	g_key_file_load_from_file(config, configfile, G_KEY_FILE_NONE, NULL);
 	port_number = utils_get_setting_integer(config, PACKAGE, "socket_remote_cmd_port",
 		SOCKET_WINDOWS_REMOTE_CMD_PORT);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list