summaryrefslogtreecommitdiff
path: root/src/up-history.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-11 09:31:25 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-14 10:36:34 +0200
commit5f26bc5caa1b1d3ed352702be1fec5d5625ff1d1 (patch)
tree0aa6d8bc509c4bd8e3318bd592f953f66580f9cc /src/up-history.c
parent7007fea309d211603f4815d45f950becf1a7dec6 (diff)
downloadupower-5f26bc5caa1b1d3ed352702be1fec5d5625ff1d1.tar.gz
daemon: Simplify _new() functions
Diffstat (limited to 'src/up-history.c')
-rw-r--r--src/up-history.c4
1 files changed, 1 insertions, 3 deletions
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);
}