[Git-commits] [grml/grml2usb] ba676b: Code cleanups
Michael Prokop
noreply at github.com
Sat Jul 18 02:07:56 CEST 2020
Branch: refs/heads/mika/vulture
Home: https://github.com/grml/grml2usb
Commit: ba676b805e7ba93fef6272ec35ecec1f86954eab
https://github.com/grml/grml2usb/commit/ba676b805e7ba93fef6272ec35ecec1f86954eab
Author: Michael Prokop <mika at grml.org>
Date: 2020-07-18 (Sat, 18 Jul 2020)
Changed paths:
M grml2usb
Log Message:
-----------
Code cleanups
* Drop unused (*arg) usage from generate_main_syslinux_config()
* Drop global variable DATESTAMP, leftover from commit 100193b24,
also remove corresponding `import datetime`
* Drop global variable GPT_HEADER, leftover from commit 705a96b84
* Drop unused `import time`
* Drop unused value variable from syslinux_warning() + grub_option()
* Drop unused function update_grml_versions(), leftover from commit 35feaad92af2e
* Drop unused array2string + string2array functions (introduced in commit 68df4a8c90),
also remove corresponding `import struct`
* Drop unused is_writeable() function
* Drop unused generate_isolinux_splash() function
* Mark unused variables in search_file() as such
(Vulture will ignore these variables if they start with an underscore)
* Mark unused function and excinfo parameters in del_failed() as unused
The path and exception information is reported as unused by
vulture, though shutil.rmtree needs to invoked with three parameters,
quoting from https://docs.python.org/3/library/shutil.html:
| If onerror is provided, it must be a callable that accepts three parameters: function, path, and excinfo.
Thanks to vulture tool (https://pypi.org/project/vulture/).
More information about the Git-commits
mailing list