From 5f89d641dd503f76ed942e4eb2c07f92e742becf Mon Sep 17 00:00:00 2001 From: xIronic Date: Sun, 23 Feb 2025 22:07:45 +0100 Subject: [PATCH] clean up code --- libsrc/api/JsonAPI.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libsrc/api/JsonAPI.cpp b/libsrc/api/JsonAPI.cpp index 80828c84..8e54729d 100644 --- a/libsrc/api/JsonAPI.cpp +++ b/libsrc/api/JsonAPI.cpp @@ -405,7 +405,6 @@ void JsonAPI::handleGetImageSnapshotCommand(const QJsonObject &message, const Js { QString replyMsg; QString filetype = message["filetype"].toString(); - const QStringList fileTypes{"BMP", "JPG", "PNG"}; const PriorityMuxer::InputInfo priorityInfo = _hyperion->getPriorityInfo(_hyperion->getCurrentPriority()); Image image = priorityInfo.image; QImage snapshot(reinterpret_cast(image.memptr()), image.width(), image.height(), qsizetype(3) * image.width(), QImage::Format_RGB888); @@ -466,7 +465,7 @@ void JsonAPI::handleInstanceDataCommand(const QJsonObject &message, const JsonAp handleGetLedSnapshotCommand(message, cmd); break; default: - sendErrorReply("Unknown subcommand", cmd); + break; } }