[ostree] pull: Drop dead code to pad output strings too



commit 59c98d0a0428826cf0e2f2cad57afd805e5f2285
Author: Colin Walters <walters verbum org>
Date:   Thu Jan 24 15:38:06 2013 -0500

    pull: Drop dead code to pad output strings too
    
    This is in GSConsole now.

 src/libgsystem           |    2 +-
 src/ostree/ostree-pull.c |   13 -------------
 2 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/src/libgsystem b/src/libgsystem
index 87bf968..3ca90a9 160000
--- a/src/libgsystem
+++ b/src/libgsystem
@@ -1 +1 @@
-Subproject commit 87bf968f3470657e5a80d3f937b2142f9f6fb53b
+Subproject commit 3ca90a9a5644573be3a84c689a437598fb4406cd
diff --git a/src/ostree/ostree-pull.c b/src/ostree/ostree-pull.c
index ff123d5..1a46889 100644
--- a/src/ostree/ostree-pull.c
+++ b/src/ostree/ostree-pull.c
@@ -117,8 +117,6 @@ typedef struct {
 
   GError      **async_error;
   gboolean      caught_error;
-
-  guint         last_padding;
 } OtPullData;
 
 typedef struct {
@@ -226,17 +224,6 @@ uri_fetch_update_status (gpointer user_data)
 
   fetcher_status = ostree_fetcher_query_state_text (pull_data->fetcher);
   g_string_append (status, fetcher_status);
-  if (status->len > pull_data->last_padding)
-    pull_data->last_padding = status->len;
-  else
-    {
-      guint diff = pull_data->last_padding - status->len;
-      while (diff > 0)
-        {
-          g_string_append_c (status, ' ');
-          diff--;
-        }
-    }
 
   gs_console_begin_status_line (gs_console_get (), status->str, NULL, NULL);
 



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