qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] util/uri: Simplify the code, remove unused functions
@ 2024-01-23 18:22 Thomas Huth
  2024-01-23 18:22 ` [PATCH v2 1/4] util/uri: Remove uri_string_unescape() Thomas Huth
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Thomas Huth @ 2024-01-23 18:22 UTC (permalink / raw)
  To: qemu-devel, Paolo Bonzini; +Cc: Stefan Weil, qemu-trivial, qemu-block

The URI function uri_string_unescape() is pretty much the same as the
function g_uri_unescape_segment() from the glib, so we can simplify
our code here quite a bit.
While at it, I also noticed that there are many other unused functions
in here which we likely can drop, too.

v2:
- Replace uri_string_unescape() with g_uri_unescape_segment(), so
  we can remove uri_string_unescape() completely now

Thomas Huth (4):
  util/uri: Remove uri_string_unescape()
  util/uri: Remove unused functions uri_resolve() and
    uri_resolve_relative()
  util/uri: Remove the uri_string_escape() function
  util/uri: Remove unused macros ISA_RESERVED() and ISA_GEN_DELIM()

 include/qemu/uri.h |   4 -
 util/uri.c         | 869 +--------------------------------------------
 2 files changed, 11 insertions(+), 862 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-24  5:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-23 18:22 [PATCH v2 0/4] util/uri: Simplify the code, remove unused functions Thomas Huth
2024-01-23 18:22 ` [PATCH v2 1/4] util/uri: Remove uri_string_unescape() Thomas Huth
2024-01-24  5:43   ` Stefan Weil
2024-01-23 18:22 ` [PATCH v2 2/4] util/uri: Remove unused functions uri_resolve() and uri_resolve_relative() Thomas Huth
2024-01-23 18:22 ` [PATCH v2 3/4] util/uri: Remove the uri_string_escape() function Thomas Huth
2024-01-23 18:22 ` [PATCH v2 4/4] util/uri: Remove unused macros ISA_RESERVED() and ISA_GEN_DELIM() Thomas Huth
2024-01-23 21:23 ` [PATCH v2 0/4] util/uri: Simplify the code, remove unused functions Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).