commit 19f795c347ff49d380866a97fa1ff4cff2d880f9
parent 01faf42f4da160bda10cca86dce9fa8e7524ae74
Author: Paul <paul@claws-mail.org>
Date: Wed, 24 Feb 2016 20:19:08 +0000
remove the whole unncessary if block, completing the last commit
Diffstat:
1 file changed, 0 insertions(+), 16 deletions(-)
diff --git a/src/common/utils.c b/src/common/utils.c
@@ -4559,22 +4559,6 @@ static gchar *mailcap_get_command_in_file(const gchar *path, const gchar *type,
result = g_strdup(trimmed);
g_strfreev(parts);
fclose(fp);
- /* if there are no single quotes around %s, add them.
- * '.*%s.*' is ok, as in display 'png:%s'
- */
- if (strstr(result, "%s")
- && !(strstr(result, "'") < strstr(result,"%s") &&
- strstr(strstr(result,"%s"), "'"))) {
- gchar *start = g_strdup(result);
- gchar *end = g_strdup(strstr(result, "%s")+2);
- gchar *tmp;
- *strstr(start, "%s") = '\0';
- tmp = g_strconcat(start,"%s",end, NULL);
- g_free(start);
- g_free(end);
- g_free(result);
- result = tmp;
- }
if (needsterminal) {
gchar *tmp = g_strdup_printf("xterm -e %s", result);
g_free(result);