[beast/devel: 17/35] SFI: remove unused code



commit 3894434dce2521652bca677afd0793cca76903e2
Author: Tim Janik <timj gnu org>
Date:   Mon May 13 00:37:10 2013 +0200

    SFI: remove unused code

 sfi/sfitypes.cc |   19 -------------------
 sfi/sfitypes.hh |    5 -----
 2 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/sfi/sfitypes.cc b/sfi/sfitypes.cc
index b2088a6..fef6926 100644
--- a/sfi/sfitypes.cc
+++ b/sfi/sfitypes.cc
@@ -16,25 +16,6 @@
 /* --- functions --- */
 
 /* --- FIXME: hacks! */
-void
-sfi_set_error (GError       **errorp,
-              GQuark         domain,
-              gint           code,
-              const gchar   *format,
-              ...)
-{
-  if (errorp && !*errorp)
-    {
-      gchar *message;
-      va_list args;
-      va_start (args, format);
-      message = g_strdup_vprintf (format, args);
-      *errorp = g_error_new_literal (domain, code, message);
-      g_free (message);
-      va_end (args);
-    }
-}
-
 static inline gchar
 char_canon (gchar c)
 {
diff --git a/sfi/sfitypes.hh b/sfi/sfitypes.hh
index 95b8c5f..f013a07 100644
--- a/sfi/sfitypes.hh
+++ b/sfi/sfitypes.hh
@@ -38,11 +38,6 @@ typedef struct _SfiUPool     SfiUPool;
 typedef struct _SfiPPool       SfiPPool;
 
 /* --- FIXME: hacks! --- */
-void   sfi_set_error   (GError       **errorp, // do nothing if *errorp is set already
-                        GQuark         domain,
-                        gint           code,
-                        const gchar   *format,
-                        ...) G_GNUC_PRINTF (4, 5);
 gboolean sfi_choice_match_detailed (const gchar *choice_val1,
                                    const gchar *choice_val2,
                                    gboolean     l1_ge_l2);


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