pidgin: 08eb4eb0: Remove unused option, thanks to KuSh. Cl...

sadrul at pidgin.im sadrul at pidgin.im
Wed Dec 31 20:01:38 EST 2008


-----------------------------------------------------------------
Revision: 08eb4eb016e65c9a5fa6e226fd0fb4c9ebadcc31
Ancestor: 4d6cb5643e4c49b8e02ddd9f3ba663148fc05113
Author: sadrul at pidgin.im
Date: 2009-01-01T01:04:34
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/08eb4eb016e65c9a5fa6e226fd0fb4c9ebadcc31

Modified files:
        finch/finch.c

ChangeLog: 

Remove unused option, thanks to KuSh. Closes #7856.

-------------- next part --------------
============================================================
--- finch/finch.c	04c463f6ffa4ddcd6760ffec9c7b757b71a8c3c7
+++ finch/finch.c	705089ed662f2165cc0256d3ea87c3a000c4585c
@@ -229,7 +229,6 @@ init_libpurple(int argc, char **argv)
 	gboolean opt_nologin = FALSE;
 	gboolean opt_version = FALSE;
 	char *opt_config_dir_arg = NULL;
-	char *opt_session_arg = NULL;
 	gboolean debug_enabled = FALSE;
 
 	struct option long_options[] = {
@@ -237,7 +236,6 @@ init_libpurple(int argc, char **argv)
 		{"debug",    no_argument,       NULL, 'd'},
 		{"help",     no_argument,       NULL, 'h'},
 		{"nologin",  no_argument,       NULL, 'n'},
-		{"session",  required_argument, NULL, 's'},
 		{"version",  no_argument,       NULL, 'v'},
 		{0, 0, 0, 0}
 	};
@@ -256,7 +254,7 @@ init_libpurple(int argc, char **argv)
 	opterr = 1;
 	while ((opt = getopt_long(argc, argv,
 #ifndef _WIN32
-				  "c:dhn::s:v",
+				  "c:dhn::v",
 #else
 				  "c:dhn::v",
 #endif
@@ -275,10 +273,6 @@ init_libpurple(int argc, char **argv)
 		case 'n':	/* no autologin */
 			opt_nologin = TRUE;
 			break;
-		case 's':	/* use existing session ID */
-			g_free(opt_session_arg);
-			opt_session_arg = g_strdup(optarg);
-			break;
 		case 'v':	/* version */
 			opt_version = TRUE;
 			break;


More information about the Commits mailing list