[geary/mjog/imap-connection-fixes: 27/34] Geary.Imap.Serializer: Remove unused id and to_string members



commit 79125d1c1aa58f310445f6ad2846659e1a43a167
Author: Michael Gratton <mike vee net>
Date:   Mon Mar 23 21:55:15 2020 +1100

    Geary.Imap.Serializer: Remove unused id and to_string members

 src/engine/imap/transport/imap-client-connection.vala |  2 +-
 src/engine/imap/transport/imap-serializer.vala        | 12 +-----------
 2 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/src/engine/imap/transport/imap-client-connection.vala 
b/src/engine/imap/transport/imap-client-connection.vala
index 71d8c0ef..8d7e54d9 100644
--- a/src/engine/imap/transport/imap-client-connection.vala
+++ b/src/engine/imap/transport/imap-client-connection.vala
@@ -318,7 +318,7 @@ public class Geary.Imap.ClientConnection : BaseObject, Logging.Source {
             this.cx.output_stream
         );
         serializer_buffer.set_close_base_stream(false);
-        this.serializer = new Serializer(id, serializer_buffer);
+        this.serializer = new Serializer(serializer_buffer);
 
         // Not buffering the Deserializer because it uses a
         // DataInputStream, which is already buffered
diff --git a/src/engine/imap/transport/imap-serializer.vala b/src/engine/imap/transport/imap-serializer.vala
index 8156c762..bbe52e2a 100644
--- a/src/engine/imap/transport/imap-serializer.vala
+++ b/src/engine/imap/transport/imap-serializer.vala
@@ -25,13 +25,10 @@ public class Geary.Imap.Serializer : BaseObject {
     private const string EOL = "\r\n";
     private const string SPACE = " ";
 
-    private string identifier;
     private GLib.OutputStream output;
 
 
-
-    public Serializer(string identifier, GLib.OutputStream output) {
-        this.identifier = identifier;
+    public Serializer(GLib.OutputStream output) {
         this.output = output;
     }
 
@@ -142,11 +139,4 @@ public class Geary.Imap.Serializer : BaseObject {
         yield this.output.close_async(GLib.Priority.DEFAULT, cancellable);
     }
 
-    /**
-     * Returns a string representation for debugging.
-     */
-    public string to_string() {
-        return "ser:%s".printf(identifier);
-    }
-
 }


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