summaryrefslogtreecommitdiffstats
path: root/src/knutnet.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-03-17 17:33:37 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-03-18 11:57:27 +0900
commit5ae8318febdda4507f44f12531e930d687d37b83 (patch)
treeaf6c34514dbd8245c86245fb447fd2f5f70b39eb /src/knutnet.cpp
parent6b71f661a3f6de6c74a52c60290cb81567232bf2 (diff)
downloadknutclient-5ae8318febdda4507f44f12531e930d687d37b83.tar.gz
knutclient-5ae8318febdda4507f44f12531e930d687d37b83.zip
Remove use of TDE_VERSIONHEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/knutnet.cpp')
-rw-r--r--src/knutnet.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/knutnet.cpp b/src/knutnet.cpp
index 6db0688..d2a18aa 100644
--- a/src/knutnet.cpp
+++ b/src/knutnet.cpp
@@ -446,15 +446,7 @@ TQString KNutNet::readEnumValueVar (const TQString name, const int valueNumber)
m_error =0;
if (m_state == Connected) {
-// #if defined (TDE_VERSION_MAJOR)
-// #if TDE_VERSION_MAJOR >= 3
- TQValueVector<upsVarDef>::const_iterator it;
-// #else
-// TQValueList<upsVar>::ConstIterator it;
-// #endif
-// #else
-// TQValueList<upsVar>::ConstIterator it;
-// #endif
+ TQValueVector<upsVarDef>::const_iterator it;
for (it = m_listVars.begin(); it != m_listVars.end(); it++) {
@@ -966,15 +958,7 @@ void KNutNet::upsSetType (struct upsVarDef& upsVar, const TQString name, const T
void KNutNet::deleteVars (void) {
-// #if defined (TDE_VERSION_MAJOR)
-// #if TDE_VERSION_MAJOR >= 3
- TQValueVector<upsVarDef>::iterator it;
-// #else
-// TQValueList<upsVar>::Iterator it;
-// #endif
-// #else
-// TQValueList<upsVar>::Iterator it;
-// #endif
+ TQValueVector<upsVarDef>::iterator it;
for (it = m_listVars.begin(); it != m_listVars.end(); it++) {
if ((*it).upsEnumValues != 0) {
(*it).upsEnumValues->clear();