[gnome-commander] Remove surplus assertions



commit d74ac8b8d8f568284ba064018acd6eeef531e711
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun May 15 14:07:43 2011 +0200

    Remove surplus assertions

 libgcmd/gnome-cmd-dialog.cc |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-dialog.cc b/libgcmd/gnome-cmd-dialog.cc
index e48b283..8a34af5 100644
--- a/libgcmd/gnome-cmd-dialog.cc
+++ b/libgcmd/gnome-cmd-dialog.cc
@@ -147,8 +147,7 @@ GtkWidget *gnome_cmd_dialog_new (const gchar *title)
 {
     GnomeCmdDialog *dialog = (GnomeCmdDialog *) g_object_new (GNOME_CMD_TYPE_DIALOG, NULL);
 
-    if (title)
-        gnome_cmd_dialog_setup (dialog, title);
+    gnome_cmd_dialog_setup (dialog, title);
 
     return GTK_WIDGET (dialog);
 }
@@ -157,7 +156,6 @@ GtkWidget *gnome_cmd_dialog_new (const gchar *title)
 void gnome_cmd_dialog_setup (GnomeCmdDialog *dialog, const gchar *title)
 {
     g_return_if_fail (GNOME_CMD_IS_DIALOG (dialog));
-    g_return_if_fail (title != NULL);
 
     if (title)
         gtk_window_set_title (GTK_WINDOW (dialog), title);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]