From e0b484436da591b6dca756a8cc43aa493f59bc5a Mon Sep 17 00:00:00 2001 From: ProtoTess <32490978+0x524A@users.noreply.github.com> Date: Tue, 18 Nov 2025 17:45:46 +0000 Subject: [PATCH] refactor: Remove unused ASCII art generation function for snapshots --- cmd/onvif-cli/main.go | 82 ------------------------------------------- 1 file changed, 82 deletions(-) diff --git a/cmd/onvif-cli/main.go b/cmd/onvif-cli/main.go index 9f91fc6..b748449 100644 --- a/cmd/onvif-cli/main.go +++ b/cmd/onvif-cli/main.go @@ -1473,86 +1473,4 @@ func (c *CLI) captureAndDisplaySnapshot(ctx context.Context) { fmt.Printf("✅ Snapshot saved to %s\n", filename) } } -} - -func generateDemoASCII(quality string) string { - low := ` -████████████████████████████████████ -████ SNAPSHOT (ASCII) ████ -████████████████████████████████████ -@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@ -@@@@@ @@@@@@@@@@@@@@@@@@@ -@@@ @@ @@@@@@@@@@@@@@@@@@@@ -@@ @@@ @@@@@@@@@@@@@@@@@@@@ -@ @@@ @@@@@@@ @@@@@@@@@@@ -@ @@@ @@@@@@@ @@@@@@@@@@@ - @@@@@@@@ @@@@@@@@@@@@ - @@@@@ @@@ @@@@@@@@@ - @@ @@@@@ @@@@@@@@ - @ @@@@@ @@ @@@@@@@@ - @@@ @@@ @@@@@@@@ - @@@ @ @@@@@@@@@ - @@@ @@@@@@@@@@@@ - @@@@@@@@@@@@@@@@@@ -@@@@@@@@@@@@@@@@@@@@@@@@@@@ -` - high := ` -████████████████████████████████████████████████████████ -████ SNAPSHOT ASCII DEMO (High Quality) ████████ -████████████████████████████████████████████████████████ -@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -@@@ @@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -@@ @@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -@ @@@ @@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@ -@ @@@ @@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@ - @@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@ - @@@@@ @@@ @@@@@@@@@@@@@@@@@@@@@ - @@ @@@@@ @@@@@@@@@@@@@@@@@@ - @ @@@@@ @@ @@@@@@@@@@@@@@@@ - @@@ @@@ @@@@@@@@@@@@ - @@@ @ @@@@@@@@@ - @@@ @@@@@@@@@@@@ - @@@@@@@@@@@@@@@@@@ -@@@@@@@@@@@@@@@@@@@@@@@@@@@ -` - block := ` -███████████████████████████████████ -███ Demo: Block Characters ███████ -███████████████████████████████████ -▓▓▓░░░░░ ░░░░░░░░▓▓▓▓▓▓▓▓▓▓ -▓▓░░░░░ ░░░░░░░░░░░▓▓▓▓▓▓▓▓ -▓░░░ ░░░░░░░░░░░░░░░░▓▓▓▓▓▓ -░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓ -░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓ -░░░░░░░░░░░░░░░░░░░░░░░░░▓▓ -` - med := ` -████████████████████████████████████████████ -████ SNAPSHOT ASCII PREVIEW ████████ -████████████████████████████████████████████ -@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ -@@@@@ @@@@@@@@@@@@@@@@@@@@@@@ -@@@ @@ @@@@@@@@@@@@@@@@@@@@@@@@ -@@ @@@ @@@@@@@@@@@@@@@@@@@@@@@@ -@ @@@ @@@@@@@ @@@@@@@@@@@@@@@ - @@@@@@@@ @@@@@@@@@@@@@@ - @@@@@ @@@ @@@@@@@@@ - @@ @@@@@ @@@@@@ - @ @@@@@ @@ @@@@ - @@@ @@@ @@@ - @@@ @ @@@@@ - @@@@@@@@@@@@@@ -@@@@@@@@@@@@@@@@@@@@@ -` - switch quality { - case "1": - return low - case "3": - return high - case "4": - return block - default: - return med - } } \ No newline at end of file