changeset 39311:57f9b3d91abc

minirst: remove unused function decorateblocks() It was added at ee6988aea74e "minirst: add decorateblocks search helper", but it's been unused since then.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 05 Aug 2018 13:13:06 +0900
parents a2a5d4ad5276
children 9198e41df6ef
files mercurial/minirst.py
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/minirst.py	Sun Aug 05 12:11:19 2018 +0900
+++ b/mercurial/minirst.py	Sun Aug 05 13:13:06 2018 +0900
@@ -798,15 +798,6 @@
             secs[-1][2].append(b)
     return secs
 
-def decorateblocks(blocks, width):
-    '''generate a list of (section name, line text) pairs for search'''
-    lines = []
-    for s in getsections(blocks):
-        section = s[0]
-        text = formatblocks(s[2], width)
-        lines.append([(section, l) for l in text.splitlines(True)])
-    return lines
-
 def maketable(data, indent=0, header=False):
     '''Generate an RST table for the given table data as a list of lines'''