From 615c301961c092e375ccd852b17d5a5f3bb5bbaa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Aug 2022 23:13:03 +0200 Subject: [PATCH] mixer/Volume: remove logging (mostly useless) --- src/mixer/Volume.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/mixer/Volume.cxx b/src/mixer/Volume.cxx index 4afb97e5d..f86f4cbb3 100644 --- a/src/mixer/Volume.cxx +++ b/src/mixer/Volume.cxx @@ -21,10 +21,8 @@ #include "output/MultipleOutputs.hxx" #include "Idle.hxx" #include "util/StringCompare.hxx" -#include "util/Domain.hxx" #include "system/PeriodClock.hxx" #include "io/BufferedOutputStream.hxx" -#include "Log.hxx" #include @@ -32,8 +30,6 @@ #define SW_VOLUME_STATE "sw_volume: " -static constexpr Domain volume_domain("volume"); - static unsigned volume_software_set = 100; /** the cached hardware mixer value; invalid if negative */ @@ -105,9 +101,7 @@ read_sw_volume_state(const char *line, MultipleOutputs &outputs) sv = strtol(line, &end, 10); if (*end == 0 && sv >= 0 && sv <= 100) software_volume_change(outputs, sv); - else - FmtWarning(volume_domain, - "Can't parse software volume: {}", line); + return true; }