[gnome-builder] file-settings: make unused function private
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] file-settings: make unused function private
- Date: Wed, 11 May 2016 17:28:58 +0000 (UTC)
commit d7de87602320856d397a78c2b7411dbd714004da
Author: Christian Hergert <chergert redhat com>
Date: Wed May 11 20:27:35 2016 +0300
file-settings: make unused function private
libide/ide-file-settings.c | 9 +++------
libide/ide-internal.h | 2 --
2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/libide/ide-file-settings.c b/libide/ide-file-settings.c
index 656f6f0..3273e12 100644
--- a/libide/ide-file-settings.c
+++ b/libide/ide-file-settings.c
@@ -161,11 +161,8 @@ ide_file_settings_set_file (IdeFileSettings *self,
g_return_if_fail (IDE_IS_FILE_SETTINGS (self));
g_return_if_fail (IDE_IS_FILE (file));
- if (priv->file != file)
- {
- if (ide_set_weak_pointer (&priv->file, file))
- g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
- }
+ if (ide_set_weak_pointer (&priv->file, file))
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
}
/**
@@ -352,7 +349,7 @@ ide_file_settings_child_notify (IdeFileSettings *self,
g_object_notify_by_pspec (G_OBJECT (self), pspec);
}
-void
+static void
_ide_file_settings_append (IdeFileSettings *self,
IdeFileSettings *child)
{
diff --git a/libide/ide-internal.h b/libide/ide-internal.h
index c040fde..6f30219 100644
--- a/libide/ide-internal.h
+++ b/libide/ide-internal.h
@@ -53,8 +53,6 @@ const gchar *_ide_file_get_content_type (IdeFile
GtkSourceFile *_ide_file_set_content_type (IdeFile *self,
const gchar *content_type);
GtkSourceFile *_ide_file_get_source_file (IdeFile *self);
-void _ide_file_settings_add_child (IdeFileSettings *self,
- IdeFileSettings *child);
IdeFixit *_ide_fixit_new (IdeSourceRange *source_range,
const gchar *replacement_text);
void _ide_project_set_name (IdeProject *project,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]