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

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

 



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

Signed-off-by: Jakub Janků <jjanku@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]