From 814059ff35f6408de9e26e3f985277d60ec72250 Mon Sep 17 00:00:00 2001 From: Shawn Chain Date: Tue, 14 May 2019 18:19:02 +0800 Subject: [PATCH] remove unused variables from OLED class --- Conf.h | 1 - Display.cpp | 2 +- OLED.cpp | 3 +-- OLED.h | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Conf.h b/Conf.h index f481822..dd2c292 100644 --- a/Conf.h +++ b/Conf.h @@ -477,7 +477,6 @@ private: bool m_oledInvert; bool m_oledScroll; bool m_oledRotate; - bool m_oledCast; std::string m_lcdprocAddress; unsigned int m_lcdprocPort; diff --git a/Display.cpp b/Display.cpp index 0afcc77..a66d3cc 100644 --- a/Display.cpp +++ b/Display.cpp @@ -570,7 +570,7 @@ CDisplay* CDisplay::createDisplay(const CConf& conf, CUMP* ump, CModem* modem) bool scroll = conf.getOLEDScroll(); bool rotate = conf.getOLEDRotate(); - display = new COLED(type, brightness, invert, scroll, rotate, conf.getDMRNetworkSlot1(), conf.getDMRNetworkSlot2(), modem); + display = new COLED(type, brightness, invert, scroll, rotate, conf.getDMRNetworkSlot1(), conf.getDMRNetworkSlot2()); #endif } else if (type == "CAST") { display = new CCASTInfo(modem); diff --git a/OLED.cpp b/OLED.cpp index be4f4fd..36d73fc 100644 --- a/OLED.cpp +++ b/OLED.cpp @@ -169,7 +169,7 @@ const unsigned char logo_POCSAG_bmp [] = 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; -COLED::COLED(unsigned char displayType, unsigned char displayBrightness, bool displayInvert, bool displayScroll, bool displayRotate, bool slot1Enabled, bool slot2Enabled, CModem* modem) : +COLED::COLED(unsigned char displayType, unsigned char displayBrightness, bool displayInvert, bool displayScroll, bool displayRotate, bool slot1Enabled, bool slot2Enabled) : m_displayType(displayType), m_displayBrightness(displayBrightness), m_displayInvert(displayInvert), @@ -177,7 +177,6 @@ m_displayScroll(displayScroll), m_displayRotate(displayRotate), m_slot1Enabled(slot1Enabled), m_slot2Enabled(slot2Enabled), -m_modem(modem), m_ipaddress(), m_display() { diff --git a/OLED.h b/OLED.h index 3a11435..df5111b 100644 --- a/OLED.h +++ b/OLED.h @@ -36,7 +36,6 @@ #include "Adafruit_GFX.h" #include "ArduiPi_OLED.h" #include "NetworkInfo.h" -#include "Modem.h" class COLED : public CDisplay { @@ -86,7 +85,6 @@ private: bool m_displayRotate; bool m_slot1Enabled; bool m_slot2Enabled; - CModem* m_modem; std::string m_ipaddress; ArduiPi_OLED m_display;