[gnome-builder] buffer: remove extraneous NULL check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buffer: remove extraneous NULL check
- Date: Wed, 11 May 2016 07:53:37 +0000 (UTC)
commit b6a90c530f250294348912d1076900ffaba2f5e2
Author: Christian Hergert <chergert redhat com>
Date: Wed May 11 10:53:27 2016 +0300
buffer: remove extraneous NULL check
This should never be NULL, so no need to check for it here.
libide/ide-buffer.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/libide/ide-buffer.c b/libide/ide-buffer.c
index ae0cf45..d70b0c0 100644
--- a/libide/ide-buffer.c
+++ b/libide/ide-buffer.c
@@ -2267,11 +2267,8 @@ ide_buffer_rehighlight (IdeBuffer *self)
if (gtk_source_buffer_get_highlight_syntax (GTK_SOURCE_BUFFER (self)))
{
- if (priv->highlight_engine != NULL)
- {
- ide_highlight_engine_rebuild (priv->highlight_engine);
- IDE_EXIT;
- }
+ ide_highlight_engine_rebuild (priv->highlight_engine);
+ IDE_EXIT;
}
ide_highlight_engine_clear (priv->highlight_engine);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]