[Xfce4-commits] <xfdesktop:master> Fix mistakes I made in the last commit.

Jannis Pohlmann noreply at xfce.org
Sun Nov 14 15:14:02 CET 2010


Updating branch refs/heads/master
         to 4518463ef4d695a798c2c3f7ac57cafb3a0b23f0 (commit)
       from d375b9b45721d9fb48f02d0f6764c0d811319293 (commit)

commit 4518463ef4d695a798c2c3f7ac57cafb3a0b23f0
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Sun Nov 14 15:12:34 2010 +0100

    Fix mistakes I made in the last commit.

 src/xfdesktop-file-icon-manager.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index 74f4a3d..c271118 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -424,19 +424,6 @@ __migrate_old_icon_positions(XfdesktopFileIconManager *fmanager)
                         g_error_free(error);
                     }
 
-                    FILE *fp = fopen(new_file, "w");
-                    gboolean success = FALSE;
-                    if(fp) {
-                        success = (fwrite(contents, 1, length, fp) == length);
-                        success = !fclose(fp);
-                    }
-                    
-                    if(!success) {
-                        g_critical("Unable to write to %s: %s", new_file,
-                                   strerror(errno));
-                    }
-#endif
-                    
                     g_free(contents);
                 } else {
                     g_critical("Unable to read from %s: %s", old_file,



More information about the Xfce4-commits mailing list