aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar uranther <jwheaton@purdue.edu>2009-06-10 19:56:21 -0400
committerGravatar uranther <jwheaton@purdue.edu>2009-06-10 19:56:21 -0400
commit7d211685f5aa8168eba60f35f06332e5289102c4 (patch)
treefe025d24313c16f13899b88fd2433885e8b7c34c /uzbl.c
parente6c50d8d1fed83cbd4a4da77fa8bd5659409a166 (diff)
Clean up init_fifo() by removing impossible conditions
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/uzbl.c b/uzbl.c
index a94bac5..3449ea7 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -1694,18 +1694,6 @@ control_fifo(GIOChannel *gio, GIOCondition condition) {
static gchar*
init_fifo(gchar *dir) { /* return dir or, on error, free dir and return NULL */
- if (uzbl.comm.fifo_path) { /* get rid of the old fifo if one exists */
- if (unlink(uzbl.comm.fifo_path) == -1)
- g_warning ("Fifo: Can't unlink old fifo at %s\n", uzbl.comm.fifo_path);
- g_free(uzbl.comm.fifo_path);
- uzbl.comm.fifo_path = NULL;
- }
-
- if (*dir == ' ') { /* space unsets the variable */
- g_free (dir);
- return NULL;
- }
-
GIOChannel *chan = NULL;
GError *error = NULL;
gchar *path = build_stream_name(FIFO, dir);