[beast/devel: 28/35] SFI: remove some unused code



commit b87a652807994bb0172a5619d0fd5ca24d659404
Author: Tim Janik <timj gnu org>
Date:   Tue May 14 20:44:15 2013 +0200

    SFI: remove some unused code

 sfi/sfigluecodec.cc |   40 ----------------------------------------
 sfi/sfigluecodec.hh |    7 -------
 2 files changed, 0 insertions(+), 47 deletions(-)
---
diff --git a/sfi/sfigluecodec.cc b/sfi/sfigluecodec.cc
index 1f2e405..a832d9d 100644
--- a/sfi/sfigluecodec.cc
+++ b/sfi/sfigluecodec.cc
@@ -97,46 +97,6 @@ sfi_glue_encoder_context (SfiComPort *port)
   return &encoder->context;
 }
 
-#if 0
-GValue* /* needs sfi_value_free() */
-sfi_glue_encode_message (guint        log_level,
-                        const gchar *format,
-                        ...)
-{
-  gchar *buffer;
-  GValue *value;
-  SfiSeq *seq;
-  va_list args;
-
-  g_return_val_if_fail (format != NULL, NULL);
-
-  va_start (args, format);
-  buffer = g_strdup_vprintf (format, args);
-  va_end (args);
-
-  switch (log_level)
-    {
-    case SFI_LOG_ERROR:
-    case SFI_LOG_WARN:
-    case SFI_LOG_INFO:
-    case SFI_LOG_DIAG:
-      break;
-    default:
-      log_level = SFI_LOG_DEBUG;
-    }
-
-  seq = sfi_seq_new ();
-  sfi_seq_append_int (seq, SFI_GLUE_CODEC_ASYNC_MESSAGE);
-  sfi_seq_append_string (seq, G_LOG_DOMAIN);
-  sfi_seq_append_int (seq, log_level);
-  sfi_seq_append_string (seq, buffer);         /* message */
-  value = sfi_value_seq (seq);
-  sfi_seq_unref (seq);
-  g_free (buffer);
-  return value;
-}
-#endif
-
 static gboolean
 encoder_process_message (SfiGlueEncoder *encoder,
                         GValue         *value,
diff --git a/sfi/sfigluecodec.hh b/sfi/sfigluecodec.hh
index 1a91a11..a0baf2f 100644
--- a/sfi/sfigluecodec.hh
+++ b/sfi/sfigluecodec.hh
@@ -23,13 +23,6 @@ typedef struct
 SfiGlueContext*        sfi_glue_encoder_context        (SfiComPort     *port);
 
 
-#if 0
-GValue*                sfi_glue_encode_message         (guint           log_level,
-                                                const gchar    *format,
-                                                ...) G_GNUC_PRINTF (2,3);
-#endif
-
-
 /* --- decoder API --- */
 typedef struct _SfiGlueDecoder SfiGlueDecoder;
 typedef GValue*        (*SfiGlueDecoderClientMsg)      (SfiGlueDecoder *decoder,


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