summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-30 13:54:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-04 09:54:27 +0900
commitaee72d11d40febd7cf65634f7569e091edbc26f7 (patch)
tree943b7871af20a5c6ed182727af1623cace0d9a96 /src
parentfa1f792e610a6a26b2cbd3aa98866eefc200d0dd (diff)
downloadtdepowersave-aee72d11d40febd7cf65634f7569e091edbc26f7.tar.gz
tdepowersave-aee72d11d40febd7cf65634f7569e091edbc26f7.zip
Removed unused/unnecessary code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src')
-rw-r--r--src/hardware.cpp44
-rw-r--r--src/hardware.h5
2 files changed, 0 insertions, 49 deletions
diff --git a/src/hardware.cpp b/src/hardware.cpp
index 500967d..25d96dd 100644
--- a/src/hardware.cpp
+++ b/src/hardware.cpp
@@ -207,11 +207,6 @@ void HardwareInfo::processKeyPressEvent(unsigned int keycode, TDEEventDevice* ed
} else if (((edevice->eventType() == TDEEventDeviceType::ACPISuspendButton) || (edevice->eventType() == TDEEventDeviceType::ACPIOtherInput))
&& (keycode == KEY_SUSPEND)) {
TQTimer::singleShot(50, this, TQT_SLOT(emitS2diskButtonPressed()));
-// } else if (value.startsWith("brightness-")) {
-// if (!brightness_in_hardware && value.endsWith("-up"))
-// TQTimer::singleShot(50, this, TQT_SLOT(brightnessUpPressed()));
-// else if (!brightness_in_hardware && value.endsWith("-down"))
-// TQTimer::singleShot(50, this, TQT_SLOT(brightnessDownPressed()));
}
kdDebugFuncOut(trace);
@@ -1220,45 +1215,6 @@ bool HardwareInfo::setBrightnessDown(int percentageStep) {
return retval;
}
-/*!
- * Function to handle the signal for the brightness up button/key
- */
-void HardwareInfo::brightnessUpPressed() {
- kdDebugFuncIn(trace);
-
- if (brightness) {
- if (!sessionIsActive) {
- kdWarning() << "Session is not active, don't react on brightness up key event!" << endl;
- } else {
- if (currentBrightnessLevel < availableBrightnessLevels) {
- setBrightnessUp();
- } else {
- kdWarning() << "Could not set brightness to higher level, it's already set to max." << endl;
- }
- }
- }
- kdDebugFuncOut(trace);
-}
-
-/*!
- * Function to handle the signal for the brightness down button/key
- */
-void HardwareInfo::brightnessDownPressed() {
- kdDebugFuncIn(trace);
-
- if (brightness) {
- if (!sessionIsActive) {
- kdWarning() << "Session is not active, don't react on brightness down key event!" << endl;
- } else {
- if (currentBrightnessLevel > 0) {
- setBrightnessDown();
- } else {
- kdWarning() << "Could not set brightness to lower level, it's already set to min." << endl;
- }
- }
- }
-}
-
// --> private helper slots to forward/handle events -- END <--
// --> get private members section -- START <---
diff --git a/src/hardware.h b/src/hardware.h
index 066d01c..c7bc3eb 100644
--- a/src/hardware.h
+++ b/src/hardware.h
@@ -348,11 +348,6 @@ private slots:
//! to emit signal for session state
void emitSessionActiveState();
- //! to handle signal for brightness Up buttons/keys
- void brightnessUpPressed();
- //! to handle signal for brightness Down buttons/keys
- void brightnessDownPressed();
-
signals:
//! signal for larger data changes
void generalDataChanged();