mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Remove dead code
This commit is contained in:
parent
c8262e65a3
commit
f07e81fcca
@ -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(" ")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user