[Spice-devel] [PATCH vdagent-linux 6/6] file-xfer: remove obsolete GLIB_CHECK_VERSION

Jakub Janků jjanku at redhat.com
Tue Sep 4 16:40:51 UTC 2018


Required GLib version was bumped from 2.28 to 2.34 by
61fc548fe1a323dd2344c8ae267e3ce05e86da7d.

Signed-off-by: Jakub Janků <jjanku at redhat.com>
---
 src/vdagent/file-xfers.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/vdagent/file-xfers.c b/src/vdagent/file-xfers.c
index 6461d05..0fabe7e 100644
--- a/src/vdagent/file-xfers.c
+++ b/src/vdagent/file-xfers.c
@@ -209,13 +209,8 @@ void vdagent_file_xfers_start(struct vdagent_file_xfers *xfers,
     free_space = get_free_space_available(xfers->save_dir);
     if (task->file_size > free_space) {
         gchar *free_space_str, *file_size_str;
-#if GLIB_CHECK_VERSION(2, 30, 0)
         free_space_str = g_format_size(free_space);
         file_size_str = g_format_size(task->file_size);
-#else
-        free_space_str = g_format_size_for_display(free_space);
-        file_size_str = g_format_size_for_display(task->file_size);
-#endif
         syslog(LOG_ERR, "file-xfer: not enough free space (%s to copy, %s free)",
                file_size_str, free_space_str);
         g_free(free_space_str);
-- 
2.17.1



More information about the Spice-devel mailing list