[gnome-software: 11/29] gs-shell: Simplify gs_shell_new()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 11/29] gs-shell: Simplify gs_shell_new()
- Date: Wed, 31 Mar 2021 16:03:46 +0000 (UTC)
commit d313522297e7977b7436630645b9baa32a63bd36
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Jan 21 00:08:26 2021 +0000
gs-shell: Simplify gs_shell_new()
This code is equivalent.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
src/gs-shell.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 7096ff5cd..f2ccae754 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -2488,7 +2488,5 @@ gs_shell_init (GsShell *shell)
GsShell *
gs_shell_new (void)
{
- GsShell *shell;
- shell = g_object_new (GS_TYPE_SHELL, NULL);
- return GS_SHELL (shell);
+ return GS_SHELL (g_object_new (GS_TYPE_SHELL, NULL));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]