[glib] Use g_error_new_valist instead of a private copy of it
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [glib] Use g_error_new_valist instead of a private copy of it
- Date: Sat, 23 May 2009 12:02:40 -0400 (EDT)
commit 54b43229f4d6c3bf456f7b910bc00722a4f956d8
Author: Christian Persch <chpe gnome org>
Date: Mon Apr 20 13:46:09 2009 +0200
Use g_error_new_valist instead of a private copy of it
---
gio/gsimpleasyncresult.c | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
diff --git a/gio/gsimpleasyncresult.c b/gio/gsimpleasyncresult.c
index 6b73358..e071d96 100644
--- a/gio/gsimpleasyncresult.c
+++ b/gio/gsimpleasyncresult.c
@@ -487,23 +487,6 @@ g_simple_async_result_set_from_error (GSimpleAsyncResult *simple,
simple->failed = TRUE;
}
-static GError*
-_g_error_new_valist (GQuark domain,
- gint code,
- const char *format,
- va_list args)
-{
- GError *error;
- char *message;
-
- message = g_strdup_vprintf (format, args);
-
- error = g_error_new_literal (domain, code, message);
- g_free (message);
-
- return error;
-}
-
/**
* g_simple_async_result_set_error_va:
* @simple: a #GSimpleAsyncResult.
@@ -528,7 +511,7 @@ g_simple_async_result_set_error_va (GSimpleAsyncResult *simple,
if (simple->error)
g_error_free (simple->error);
- simple->error = _g_error_new_valist (domain, code, format, args);
+ simple->error = g_error_new_valist (domain, code, format, args);
simple->failed = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]