mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
docs/qapidoc: remove unused intersperse function
This function has been unused since since commit
fd62bff901
(sphinx/qapidoc: Drop code to generate doc for simple
union tag).
Signed-off-by: John Snow <jsnow@redhat.com>
Message-ID: <20240626222128.406106-4-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Commit message tweaked]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
f64e753149
commit
5dd22c2073
1 changed files with 0 additions and 10 deletions
|
@ -50,16 +50,6 @@ else:
|
||||||
__version__ = '1.0'
|
__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):
|
class QAPISchemaGenRSTVisitor(QAPISchemaVisitor):
|
||||||
"""A QAPI schema visitor which generates docutils/Sphinx nodes
|
"""A QAPI schema visitor which generates docutils/Sphinx nodes
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue