[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/13] docs/qapidoc: remove unused intersperse function
From: |
Markus Armbruster |
Subject: |
[PULL 02/13] docs/qapidoc: remove unused intersperse function |
Date: |
Sat, 6 Jul 2024 09:24:05 +0200 |
From: John Snow <jsnow@redhat.com>
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>
---
docs/sphinx/qapidoc.py | 10 ----------
1 file changed, 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 @@
__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
--
2.45.0
- [PULL 00/13] QAPI patches patches for 2024-07-06, Markus Armbruster, 2024/07/06
- [PULL 02/13] docs/qapidoc: remove unused intersperse function,
Markus Armbruster <=
- [PULL 04/13] qapi/parser: preserve indentation in QAPIDoc sections, Markus Armbruster, 2024/07/06
- [PULL 10/13] qapi: update prose in note blocks, Markus Armbruster, 2024/07/06
- [PULL 03/13] docs/qapidoc: delint a tiny portion of the module, Markus Armbruster, 2024/07/06
- [PULL 09/13] qapi: convert "Note" sections to plain rST, Markus Armbruster, 2024/07/06
- [PULL 06/13] docs/qapidoc: fix nested parsing under untagged sections, Markus Armbruster, 2024/07/06
- [PULL 05/13] qapi/parser: fix comment parsing immediately following a doc block, Markus Armbruster, 2024/07/06
- [PULL 11/13] qapi: add markup to note blocks, Markus Armbruster, 2024/07/06
- [PULL 08/13] qapi: nail down convention that Errors sections are lists, Markus Armbruster, 2024/07/06
- [PULL 13/13] sphinx/qapidoc: Fix to generate doc for explicit, unboxed arguments, Markus Armbruster, 2024/07/06
- [PULL 01/13] qapi: linter fixups, Markus Armbruster, 2024/07/06