aboutsummaryrefslogtreecommitdiff
path: root/docs/sphinx/qapidoc.py
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2024-06-26 18:21:09 -0400
committerMarkus Armbruster <armbru@redhat.com>2024-07-06 08:58:24 +0200
commit5dd22c20730922a2d31ea0f38e6a5b8ccc998699 (patch)
tree30c3dd854be84d315beb3b464f0c5a883d87c501 /docs/sphinx/qapidoc.py
parentf64e753149a0472e381246f0e06e5b293aa40541 (diff)
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 <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>
Diffstat (limited to 'docs/sphinx/qapidoc.py')
-rw-r--r--docs/sphinx/qapidoc.py10
1 files changed, 0 insertions, 10 deletions
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