scripts: Dropped --padding from ascii art scripts

No one is realistically ever going to use this.

Ascii art is just too low resolution, trying to pad anything just wastes
terminal space. So we might as well not support --padding and save on
the additional corner cases.

Worst case, in the future we can always find this commit and revert
things.
This commit is contained in:
Christopher Haster
2025-04-11 03:17:46 -05:00
parent 9008e8c82c
commit eb4c4c612e
4 changed files with 8 additions and 96 deletions
-17
View File
@@ -4354,7 +4354,6 @@ def main_(ring, disk, mroots=None, *,
title=None,
title_littlefs=False,
title_usage=False,
padding=0,
**args):
# give ring an writeln function
def writeln(s=''):
@@ -4677,17 +4676,6 @@ def main_(ring, disk, mroots=None, *,
b.width = block_width_
b.height = block_height_
# apply top padding
if x == 0:
b.x += padding
b.width -= min(padding, b.width)
if y == 0:
b.y += padding
b.height -= min(padding, b.height)
# apply bottom padding
b.width -= min(padding, b.width)
b.height -= min(padding, b.height)
# align to pixel boundaries
b.align()
@@ -5075,11 +5063,6 @@ if __name__ == "__main__":
action='store_true',
help="Use the mdir/btree/data usage as the title. This is the "
"default.")
# TODO drop padding in ascii scripts, no one is ever going to use this
parser.add_argument(
'--padding',
type=float,
help="Padding to add to each block. Defaults to 0.")
parser.add_argument(
'-e', '--error-on-corrupt',
action='store_true',