Remove dead code

This commit is contained in:
Nick Mowen 2023-01-12 15:11:44 -07:00
parent c8262e65a3
commit f07e81fcca

View File

@ -129,16 +129,11 @@ def parse_preset_hardware_acceleration_scale(
) -> list[str]: ) -> list[str]:
"""Return the correct scaling preset or default preset if none is set.""" """Return the correct scaling preset or default preset if none is set."""
if not isinstance(arg, str) or " " in arg: if not isinstance(arg, str) or " " in arg:
scale: str = ( scale = PRESETS_HW_ACCEL_SCALE["default"].format(fps, width, height).split(" ")
PRESETS_HW_ACCEL_SCALE["default"]
.copy()
.format(fps, width, height)
.split(" ")
)
scale.extend(detect_args) scale.extend(detect_args)
return scale return scale
scale = PRESETS_HW_ACCEL_SCALE.get(arg, "").copy() scale = PRESETS_HW_ACCEL_SCALE.get(arg, "")
if scale: if scale:
return scale.format(fps, width, height).split(" ") return scale.format(fps, width, height).split(" ")