[sysprof] Eliminate 'partial' string



commit 9072f891fd431c7a9c8a79f0f455656f805d23b1
Author: Søren Sandmann Pedersen <ssp redhat com>
Date:   Thu Sep 24 10:46:59 2009 -0400

    Eliminate 'partial' string

 collector.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/collector.c b/collector.c
index cd219a6..2e5e979 100644
--- a/collector.c
+++ b/collector.c
@@ -64,8 +64,6 @@ struct counter_t
     
     uint64_t				tail;
     int					cpu;
-    
-    GString *				partial;
 }; 
 
 struct sample_event_t
@@ -362,7 +360,6 @@ counter_new (Collector *collector,
     counter->data = (uint8_t *)counter->mmap_page + get_page_size ();
     counter->tail = 0;
     counter->cpu = cpu;
-    counter->partial = g_string_new (NULL);
     
     fd_add_watch (fd, counter);
     fd_set_read_callback (fd, on_read);
@@ -393,7 +390,6 @@ counter_free (counter_t *counter)
     fd_remove_watch (counter->fd);
     
     close (counter->fd);
-    g_string_free (counter->partial, TRUE);
     
     g_free (counter);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]