[gnome-builder] build: fix warnings on nodebug builds
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build: fix warnings on nodebug builds
- Date: Sun, 6 Sep 2015 06:59:41 +0000 (UTC)
commit c38ce976cc88cfb6a94c2c84145d61d235d5493a
Author: Christian Hergert <christian hergert me>
Date: Sat Sep 5 23:59:43 2015 -0700
build: fix warnings on nodebug builds
libide/ide-context.c | 4 ----
libide/ide-highlight-engine.c | 4 ----
src/app/gb-application-actions.c | 3 ---
src/dialogs/gb-projects-dialog.c | 2 --
src/shortcuts/gb-shortcuts-dialog.c | 8 ++------
5 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/libide/ide-context.c b/libide/ide-context.c
index 9a06173..f678d0e 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -507,12 +507,8 @@ ide_context_loaded (IdeContext *self)
static void
ide_context_dispose (GObject *object)
{
- IdeContext *self = (IdeContext *)object;
-
IDE_ENTRY;
- g_return_if_fail (IDE_IS_CONTEXT (self));
-
/*
* TODO: Shutdown services.
*/
diff --git a/libide/ide-highlight-engine.c b/libide/ide-highlight-engine.c
index ff50aac..6506f18 100644
--- a/libide/ide-highlight-engine.c
+++ b/libide/ide-highlight-engine.c
@@ -507,7 +507,6 @@ ide_highlight_engine__buffer_insert_text_cb (IdeHighlightEngine *self,
gint len,
IdeBuffer *buffer)
{
- GtkTextBuffer *text_buffer = (GtkTextBuffer *)buffer;
GtkTextIter begin;
GtkTextIter end;
@@ -517,7 +516,6 @@ ide_highlight_engine__buffer_insert_text_cb (IdeHighlightEngine *self,
g_assert (location);
g_assert (text);
g_assert (IDE_IS_BUFFER (buffer));
- g_assert (GTK_IS_TEXT_BUFFER (text_buffer));
/*
* Backward the begin iter len characters from location
@@ -540,7 +538,6 @@ ide_highlight_engine__buffer_delete_range_cb (IdeHighlightEngine *self,
GtkTextIter *range_end,
IdeBuffer *buffer)
{
- GtkTextBuffer *text_buffer = (GtkTextBuffer *)buffer;
GtkTextIter begin;
GtkTextIter end;
@@ -549,7 +546,6 @@ ide_highlight_engine__buffer_delete_range_cb (IdeHighlightEngine *self,
g_assert (IDE_IS_HIGHLIGHT_ENGINE (self));
g_assert (range_begin);
g_assert (IDE_IS_BUFFER (buffer));
- g_assert (GTK_IS_TEXT_BUFFER (text_buffer));
/*
* No need to use the range_end since everything that
diff --git a/src/app/gb-application-actions.c b/src/app/gb-application-actions.c
index 8fcf30a..7bd0637 100644
--- a/src/app/gb-application-actions.c
+++ b/src/app/gb-application-actions.c
@@ -286,11 +286,8 @@ gb_application_actions_shortcuts (GSimpleAction *action,
GVariant *variant,
gpointer user_data)
{
- GbApplication *self = user_data;
GbShortcutsWindow *window;
- g_assert (GB_IS_APPLICATION (self));
-
window = g_object_new (GB_TYPE_SHORTCUTS_WINDOW,
"window-position", GTK_WIN_POS_CENTER,
"default-width", 800,
diff --git a/src/dialogs/gb-projects-dialog.c b/src/dialogs/gb-projects-dialog.c
index e0d6d19..8422d1f 100644
--- a/src/dialogs/gb-projects-dialog.c
+++ b/src/dialogs/gb-projects-dialog.c
@@ -167,11 +167,9 @@ gb_projects_dialog__recent_projects_discover_cb (GObject *object,
gpointer user_data)
{
IdeRecentProjects *recent_projects = (IdeRecentProjects *)object;
- g_autoptr(GbProjectsDialog) self = user_data;
GError *error = NULL;
g_assert (IDE_IS_RECENT_PROJECTS (recent_projects));
- g_assert (GB_IS_PROJECTS_DIALOG (self));
if (!ide_recent_projects_discover_finish (recent_projects, result, &error))
{
diff --git a/src/shortcuts/gb-shortcuts-dialog.c b/src/shortcuts/gb-shortcuts-dialog.c
index 9f26396..96ed483 100644
--- a/src/shortcuts/gb-shortcuts-dialog.c
+++ b/src/shortcuts/gb-shortcuts-dialog.c
@@ -615,9 +615,7 @@ gb_shortcuts_dialog_custom_tag_start (GtkBuildable *buildable,
GMarkupParser *parser,
gpointer *data)
{
- GbShortcutsDialog *self = (GbShortcutsDialog *)buildable;
-
- g_assert (GB_IS_SHORTCUTS_DIALOG (self));
+ g_assert (GTK_IS_BUILDABLE (buildable));
g_assert (GTK_IS_BUILDER (builder));
g_assert (tagname != NULL);
g_assert (parser != NULL);
@@ -650,9 +648,7 @@ gb_shortcuts_dialog_custom_finished (GtkBuildable *buildable,
const gchar *tagname,
gpointer user_data)
{
- GbShortcutsDialog *self = (GbShortcutsDialog *)buildable;
-
- g_assert (GB_IS_SHORTCUTS_DIALOG (self));
+ g_assert (GB_IS_SHORTCUTS_DIALOG (buildable));
g_assert (GTK_IS_BUILDER (builder));
g_assert (tagname != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]