Submitter | Yuya Nishihara |
---|---|
Date | Aug. 22, 2018, 12:19 p.m. |
Message ID | <cc35de8f903ef9fe59f7.1534940395@mimosa> |
Download | mbox | patch |
Permalink | /patch/33973/ |
State | Accepted |
Headers | show |
Comments
> On Aug 22, 2018, at 8:19 AM, Yuya Nishihara <yuya@tcha.org> wrote: > > # HG changeset patch > # User Yuya Nishihara <yuya@tcha.org> > # Date 1533442386 -32400 > # Sun Aug 05 13:13:06 2018 +0900 > # Node ID cc35de8f903ef9fe59f725a80edc85851f770456 > # Parent 2aa41bb00b93fd9cc5459aef6bd83d0b3ba77ab3 > minirst: remove unused function decorateblocks() queued, thanks
Patch
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'''