summaryrefslogtreecommitdiff
path: root/src/core/misc.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2003-01-31 04:03:06 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2003-01-31 04:03:06 +0000
commit25fdeeaa8d82af319b655e3da426c3c6952caa1e (patch)
tree6074e858cca127966ac4457e144a2ade6a1e4c22 /src/core/misc.c
parente2f6f48f620174baaa2c0bbdc27db72a69d1fab8 (diff)
downloadirssi-25fdeeaa8d82af319b655e3da426c3c6952caa1e.zip
Removed execute(), not used.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3107 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/misc.c')
-rw-r--r--src/core/misc.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index 4f316786..0c36bf6b 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -173,37 +173,6 @@ int strarray_find(char **array, const char *item)
return -1;
}
-int execute(const char *cmd)
-{
- char **args;
-#ifndef WIN32
- int pid;
-#endif
-
- g_return_val_if_fail(cmd != NULL, -1);
-
-#ifndef WIN32
- pid = fork();
- if (pid == -1) return FALSE;
- if (pid != 0) {
- pidwait_add(pid);
- return pid;
- }
-
- args = g_strsplit(cmd, " ", -1);
- execvp(args[0], args);
- g_strfreev(args);
-
- _exit(99);
- return -1;
-#else
- args = g_strsplit(cmd, " ", -1);
- _spawnvp(_P_DETACH, args[0], args);
- g_strfreev(args);
- return 0;
-#endif
-}
-
GSList *gslist_find_string(GSList *list, const char *key)
{
for (list = list; list != NULL; list = list->next)