Skip to content

Commit

Permalink
glib-backports: Remove obsoleted backports
Browse files Browse the repository at this point in the history
They're not necessary now that we depend on GLib >= 2.72
  • Loading branch information
GeorgesStavracas committed Oct 29, 2024
1 parent b697735 commit 71b0cc4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 94 deletions.
74 changes: 0 additions & 74 deletions src/glib-backports.c

This file was deleted.

18 changes: 0 additions & 18 deletions src/glib-backports.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,3 @@ _g_clear_fd_ignore_error (int *fd_ptr)

#define g_autofd __attribute__((cleanup(_g_clear_fd_ignore_error)))
#endif

#if !GLIB_CHECK_VERSION (2, 68, 0)
guint g_string_replace (GString *string,
const gchar *find,
const gchar *replace,
guint limit);
#endif

#if !GLIB_CHECK_VERSION (2, 68, 0)
static inline void
g_log_writer_default_set_use_stderr (gboolean use_stderr)
{
/* Does nothing because outside of the tests we don't really care that it
* doesn't work correctly after this call and those tests can run on newer
* GLibs
*/
}
#endif
2 changes: 0 additions & 2 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ xdg_desktop_portal_sources = files(
'file-chooser.c',
'flatpak-instance.c',
'gamemode.c',
'glib-backports.c',
'global-shortcuts.c',
'inhibit.c',
'input-capture.c',
Expand Down Expand Up @@ -205,7 +204,6 @@ configure_file(
executable(
'xdg-desktop-portal-rewrite-launchers',
'rewrite-launchers.c',
'glib-backports.c',
dependencies: common_deps,
include_directories: common_includes,
install: true,
Expand Down

0 comments on commit 71b0cc4

Please sign in to comment.