# HG changeset patch # User Yuya Nishihara # Date 2018-08-05 04:13:06 # Node ID 57f9b3d91abcff186caf756492903de592828e4a # Parent a2a5d4ad5276a3d400dc32e744e70614554bde49 minirst: remove unused function decorateblocks() It was added at ee6988aea74e "minirst: add decorateblocks search helper", but it's been unused since then. diff --git a/mercurial/minirst.py b/mercurial/minirst.py --- a/mercurial/minirst.py +++ b/mercurial/minirst.py @@ -798,15 +798,6 @@ def getsections(blocks): 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'''