file-transfer: remove unused function for debug

This is here due bad rebase. It was removed and replaced by patch
f6072e678e but not removed from 1af22e9652 "file-xfer:
move to spice-file-transfer-task.c", so the function is there, unused.

Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
Victor Toso 2016-07-29 14:42:19 +02:00
parent 5a301b201b
commit 3a91bcfffa
2 changed files with 0 additions and 16 deletions

View File

@ -52,7 +52,6 @@ gssize spice_file_transfer_task_read_finish(SpiceFileTransferTask *self,
GError **error);
guint64 spice_file_transfer_task_get_file_size(SpiceFileTransferTask *self);
guint64 spice_file_transfer_task_get_bytes_read(SpiceFileTransferTask *self);
void spice_file_transfer_task_debug_info(SpiceFileTransferTask *self);
G_END_DECLS

View File

@ -464,21 +464,6 @@ gssize spice_file_transfer_task_read_finish(SpiceFileTransferTask *self,
return nbytes;
}
G_GNUC_INTERNAL
void spice_file_transfer_task_debug_info(SpiceFileTransferTask *self)
{
const GTimeSpan interval = 20 * G_TIME_SPAN_SECOND;
gint64 now = g_get_monotonic_time();
if (interval < now - self->last_update) {
gchar *basename = g_file_get_basename(self->file);
self->last_update = now;
SPICE_DEBUG("transferred %.2f%% of the file %s",
100.0 * self->read_bytes / self->file_size, basename);
g_free(basename);
}
}
/*******************************************************************************
* External API
******************************************************************************/