From 2725565eb935acc47d8833a77ecf5715c109e3d9 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 5 Mar 2020 15:30:02 -0800 Subject: [PATCH] libsysprof-capture: remove fallback code We don't support the fallback writer interface currently, so this can go until we decide what to do going forward. --- src/libsysprof-capture/sysprof-collector.c | 30 +--------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/src/libsysprof-capture/sysprof-collector.c b/src/libsysprof-capture/sysprof-collector.c index 902428d4..7e2281c6 100644 --- a/src/libsysprof-capture/sysprof-collector.c +++ b/src/libsysprof-capture/sysprof-collector.c @@ -248,35 +248,7 @@ sysprof_collector_get (void) #endif if (g_getenv ("SYSPROF_CONTROL_FD") != NULL) - { - self->buffer = request_writer (); - } -#if 0 - else - { - /* TODO: Fix envvar name */ - const gchar *trace_fd = g_getenv ("SYSPROF_TRACE_FD"); - - if (trace_fd != NULL) - { - int fd = atoi (trace_fd); - - if (fd > 0) - { - self->writer = sysprof_capture_writer_new_from_fd (fd, 0); - self->is_shared = TRUE; - } - } - - if (self->writer == NULL && g_getenv ("SYSPROF_TRACE") != NULL) - { - g_autofree gchar *filename = g_strdup_printf ("capture.%d.syscap", (int)getpid ()); - - self->writer = sysprof_capture_writer_new (filename, 0); - self->is_shared = TRUE; - } - } -#endif + self->buffer = request_writer (); if (self->is_shared) shared_collector = self;