commit be65fcae792742e4101f6ea230ed7b195b4257db
parent af3984ca0692364dd1cab07001f190e6e4dbb61c
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date: Mon, 20 May 2024 23:29:27 -0300
remove Channel's `lastVolume` use `volume` instead
Diffstat:
1 file changed, 0 insertions(+), 7 deletions(-)
diff --git a/parciales/2p1C2021/main.cpp b/parciales/2p1C2021/main.cpp
@@ -10,7 +10,6 @@ private:
Channel* prev;
unsigned int index;
unsigned int volume;
- unsigned int lastVolume;
unsigned int maxVolume;
bool mute;
@@ -18,7 +17,6 @@ public:
Channel() {
next = prev = NULL;
index = 0;
- lastVolume = maxVolume = volume = 50; // initialize channel volume at 50%
mute = false;
}
@@ -55,7 +53,6 @@ public:
}
void setVolume(int volume) {
- lastVolume = this->volume;
if(volume > 100) {
this->volume = 100;
}
@@ -70,10 +67,6 @@ public:
return this->maxVolume;
}
- unsigned int getLastVolume() {
- return this->lastVolume;
- }
-
void setNextChannel(Channel *next) {
this->next = next;
}