[gnome-builder] snippets: remove dead code
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] snippets: remove dead code
- Date: Tue, 19 Apr 2016 02:22:16 +0000 (UTC)
commit e6afdb92eb92d8ca8a7ba3feb3175efaa3441696
Author: Christian Hergert <christian hergert me>
Date: Mon Apr 18 19:22:09 2016 -0700
snippets: remove dead code
libide/ide-source-snippet-chunk.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-source-snippet-chunk.c b/libide/ide-source-snippet-chunk.c
index 4fe2e5a..1c72cab 100644
--- a/libide/ide-source-snippet-chunk.c
+++ b/libide/ide-source-snippet-chunk.c
@@ -125,9 +125,9 @@ ide_source_snippet_chunk_set_context (IdeSourceSnippetChunk *chunk,
g_clear_object (&chunk->context);
- if (context)
+ if (context != NULL)
{
- chunk->context = context ? g_object_ref (context) : NULL;
+ chunk->context = g_object_ref (context);
chunk->context_changed_handler =
g_signal_connect_object (chunk->context,
"changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]