From: Zbigniew Jędrzejewski-Szmek Date: Sun, 12 Jun 2022 20:09:49 +0000 (+0200) Subject: libsystemd: drop unexported sd-utf8 X-Git-Tag: v252-rc1~751^2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2dbf1c0f1556bcf8fbab2491ec0f23a85884c551;p=thirdparty%2Fsystemd.git libsystemd: drop unexported sd-utf8 It had two symbols which were not actually exported because they were not listed in libsystemd.sym. They were also entirely unused in our codebase. I don't think it makes much sense to export just those two functions, and it doesn't make to build a string processing library in systemd either. History of the file shows that it was created in faaa5728d956b7f0d24f27f3341d0b9fff30af00 'utf8: export utf8 validation functions as part of sd-bus' and hasn't gone even one non-trivial change since then ;) --- diff --git a/src/libsystemd/meson.build b/src/libsystemd/meson.build index 055fa11ede7..2b288ccb288 100644 --- a/src/libsystemd/meson.build +++ b/src/libsystemd/meson.build @@ -155,7 +155,6 @@ libsystemd_sources = files( 'sd-path/sd-path.c', 'sd-resolve/resolve-private.h', 'sd-resolve/sd-resolve.c', - 'sd-utf8/sd-utf8.c', ) + sd_journal_sources + id128_sources + sd_daemon_sources + sd_event_sources + sd_login_sources diff --git a/src/libsystemd/sd-utf8/sd-utf8.c b/src/libsystemd/sd-utf8/sd-utf8.c deleted file mode 100644 index 82fa125aded..00000000000 --- a/src/libsystemd/sd-utf8/sd-utf8.c +++ /dev/null @@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: LGPL-2.1-or-later */ - -#include "sd-utf8.h" - -#include "utf8.h" -#include "util.h" - -_public_ const char *sd_utf8_is_valid(const char *s) { - assert_return(s, NULL); - - return utf8_is_valid(s); -} - -_public_ const char *sd_ascii_is_valid(const char *s) { - assert_return(s, NULL); - - return ascii_is_valid(s); -} diff --git a/src/systemd/meson.build b/src/systemd/meson.build index df8c74ebdd0..6048c138597 100644 --- a/src/systemd/meson.build +++ b/src/systemd/meson.build @@ -36,7 +36,6 @@ _not_installed_headers = [ 'sd-network.h', 'sd-radv.h', 'sd-resolve.h', - 'sd-utf8.h', ] install_headers(