From 5f26bc5caa1b1d3ed352702be1fec5d5625ff1d1 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 11 Oct 2013 09:31:25 +0200 Subject: daemon: Simplify _new() functions --- src/up-history.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/up-history.c') diff --git a/src/up-history.c b/src/up-history.c index c16b3c1..169d361 100644 --- a/src/up-history.c +++ b/src/up-history.c @@ -937,8 +937,6 @@ up_history_finalize (GObject *object) UpHistory * up_history_new (void) { - UpHistory *history; - history = g_object_new (UP_TYPE_HISTORY, NULL); - return UP_HISTORY (history); + return g_object_new (UP_TYPE_HISTORY, NULL); } -- cgit v1.2.1