[gnome-commander/gcmd-1-2-8] Removed unused xfer callback.
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8] Removed unused xfer callback.
- Date: Wed, 15 Sep 2010 22:56:58 +0000 (UTC)
commit e1095f30405e22de4002a35700095df316ee3055
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Sep 15 09:46:00 2010 +0200
Removed unused xfer callback.
This should result in some transfer speedup - especially for large files
src/gnome-cmd-xfer.cc | 34 ++++++++--------------------------
1 files changed, 8 insertions(+), 26 deletions(-)
---
diff --git a/src/gnome-cmd-xfer.cc b/src/gnome-cmd-xfer.cc
index 6f4a846..85e297a 100644
--- a/src/gnome-cmd-xfer.cc
+++ b/src/gnome-cmd-xfer.cc
@@ -127,12 +127,6 @@ create_xfer_data (GnomeVFSXferOptions xferOptions, GList *src_uri_list, GList *d
}
-static gint xfer_callback (GnomeVFSXferProgressInfo *info, gpointer user_data)
-{
- return 1;
-}
-
-
static gint async_xfer_callback (GnomeVFSAsyncHandle *handle, GnomeVFSXferProgressInfo *info, XferData *data)
{
data->cur_phase = info->phase;
@@ -428,17 +422,11 @@ gnome_cmd_xfer_uris_start (GList *src_uri_list,
gtk_widget_show (GTK_WIDGET (data->win));
// start the transfer
- gnome_vfs_async_xfer (&data->handle,
- data->src_uri_list,
- data->dest_uri_list,
- xferOptions,
- GNOME_VFS_XFER_ERROR_MODE_QUERY,
- xferOverwriteMode,
+ gnome_vfs_async_xfer (&data->handle, data->src_uri_list, data->dest_uri_list,
+ xferOptions, GNOME_VFS_XFER_ERROR_MODE_QUERY, xferOverwriteMode,
XFER_PRIORITY,
- (GnomeVFSAsyncXferProgressCallback) async_xfer_callback,
- data,
- xfer_callback,
- data);
+ (GnomeVFSAsyncXferProgressCallback) async_xfer_callback, data,
+ NULL, NULL);
g_timeout_add (gnome_cmd_data.gui_update_rate, (GSourceFunc) update_xfer_gui_func, data);
}
@@ -514,17 +502,11 @@ gnome_cmd_xfer_tmp_download_multiple (GList *src_uri_list,
// start the transfer
GnomeVFSResult result;
- result = gnome_vfs_async_xfer (&data->handle,
- data->src_uri_list,
- data->dest_uri_list,
- xferOptions,
- GNOME_VFS_XFER_ERROR_MODE_ABORT,
- xferOverwriteMode,
+ result = gnome_vfs_async_xfer (&data->handle, data->src_uri_list, data->dest_uri_list,
+ xferOptions, GNOME_VFS_XFER_ERROR_MODE_ABORT, xferOverwriteMode,
XFER_PRIORITY,
- (GnomeVFSAsyncXferProgressCallback) async_xfer_callback,
- data,
- xfer_callback,
- data);
+ (GnomeVFSAsyncXferProgressCallback) async_xfer_callback, data,
+ NULL, NULL);
g_timeout_add (gnome_cmd_data.gui_update_rate, (GSourceFunc) update_xfer_gui_func, data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]