diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-11 09:31:25 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-14 10:36:34 +0200 |
commit | 5f26bc5caa1b1d3ed352702be1fec5d5625ff1d1 (patch) | |
tree | 0aa6d8bc509c4bd8e3318bd592f953f66580f9cc /src/up-history.c | |
parent | 7007fea309d211603f4815d45f950becf1a7dec6 (diff) | |
download | upower-5f26bc5caa1b1d3ed352702be1fec5d5625ff1d1.tar.gz |
daemon: Simplify _new() functions
Diffstat (limited to 'src/up-history.c')
-rw-r--r-- | src/up-history.c | 4 |
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); } |