gnome-commander r2200 - in branches/gcmd-1-3: . src



Author: epiotr
Date: Thu Oct 16 16:09:46 2008
New Revision: 2200
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2200&view=rev

Log:
Remove surplus assertions

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/gnome-cmd-file-selector.cc

Modified: branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-selector.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-selector.cc	Thu Oct 16 16:09:46 2008
@@ -759,7 +759,6 @@
 
 static void on_dir_file_created (GnomeCmdDir *dir, GnomeCmdFile *f, GnomeCmdFileSelector *fs)
 {
-    g_return_if_fail (GNOME_CMD_IS_DIR (dir));
     g_return_if_fail (GNOME_CMD_IS_FILE (f));
     g_return_if_fail (GNOME_CMD_IS_FILE_SELECTOR (fs));
 
@@ -782,7 +781,6 @@
 
 static void on_dir_file_changed (GnomeCmdDir *dir, GnomeCmdFile *f, GnomeCmdFileSelector *fs)
 {
-    g_return_if_fail (GNOME_CMD_IS_DIR (dir));
     g_return_if_fail (GNOME_CMD_IS_FILE (f));
     g_return_if_fail (GNOME_CMD_IS_FILE_SELECTOR (fs));
 
@@ -796,7 +794,6 @@
 
 static void on_dir_file_renamed (GnomeCmdDir *dir, GnomeCmdFile *f, GnomeCmdFileSelector *fs)
 {
-    g_return_if_fail (GNOME_CMD_IS_DIR (dir));
     g_return_if_fail (GNOME_CMD_IS_FILE (f));
     g_return_if_fail (GNOME_CMD_IS_FILE_SELECTOR (fs));
 
@@ -825,9 +822,6 @@
 
 static void on_combo_popwin_hidden (GnomeCmdCombo *combo, GnomeCmdFileSelector *fs)
 {
-    g_return_if_fail (GNOME_CMD_IS_COMBO (combo));
-    g_return_if_fail (GNOME_CMD_IS_FILE_SELECTOR (fs));
-
     gnome_cmd_main_win_refocus (main_win);
 }
 
@@ -1322,7 +1316,6 @@
 {
     g_return_if_fail (GNOME_CMD_IS_FILE_SELECTOR (fs));
     g_return_if_fail (GNOME_CMD_IS_DIR (fs->file_list()->cwd));
-    g_return_if_fail (GNOME_CMD_IS_CON (fs->get_connection()));
 
     if (!fs->is_local())
         return;



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