From: John Snow Date: Wed, 26 Jun 2024 22:21:09 +0000 (-0400) Subject: docs/qapidoc: remove unused intersperse function X-Git-Tag: pull-vmclock-20250108~256^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5dd22c20730922a2d31ea0f38e6a5b8ccc998699;p=users%2Fdwmw2%2Fqemu.git docs/qapidoc: remove unused intersperse function This function has been unused since since commit fd62bff901b (sphinx/qapidoc: Drop code to generate doc for simple union tag). Signed-off-by: John Snow Message-ID: <20240626222128.406106-4-jsnow@redhat.com> Reviewed-by: Markus Armbruster [Commit message tweaked] Signed-off-by: Markus Armbruster --- diff --git a/docs/sphinx/qapidoc.py b/docs/sphinx/qapidoc.py index f270b494f0..3c0565d0ce 100644 --- a/docs/sphinx/qapidoc.py +++ b/docs/sphinx/qapidoc.py @@ -50,16 +50,6 @@ else: __version__ = '1.0' -# Function borrowed from pydash, which is under the MIT license -def intersperse(iterable, separator): - """Yield the members of *iterable* interspersed with *separator*.""" - iterable = iter(iterable) - yield next(iterable) - for item in iterable: - yield separator - yield item - - class QAPISchemaGenRSTVisitor(QAPISchemaVisitor): """A QAPI schema visitor which generates docutils/Sphinx nodes