From bac63c1ea7605b0609d8950bc46f1b6025200b48 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 5 Dec 2022 15:14:49 -0500 Subject: [PATCH] Remove the read_log() stuff. --- q65w/mainwindow.cpp | 26 -------------------------- q65w/mainwindow.h | 1 - 2 files changed, 27 deletions(-) diff --git a/q65w/mainwindow.cpp b/q65w/mainwindow.cpp index e534665f0..28ef636a1 100644 --- a/q65w/mainwindow.cpp +++ b/q65w/mainwindow.cpp @@ -1052,9 +1052,6 @@ void MainWindow::decode() //decode() datcom_.junk1=1234; datcom_.junk2=5678; - //newdat=1 ==> this is new data, must do the big FFT - //nagain=1 ==> decode only at fQSO +/- Tol - char *to = (char*)mem_m65.data(); char *from = (char*) datcom_.d4; int size=sizeof(datcom_); @@ -1137,8 +1134,6 @@ void MainWindow::readFromStdout() //readFromStdout return; } - read_log(); - if(t.indexOf("~") >= 0) { int n=t.length(); int m=2; @@ -1543,24 +1538,3 @@ bool MainWindow::isGrid4(QString g) if(g.mid(3,1)<'0' or g.mid(3,1)>'9') return false; return true; } - -void MainWindow::read_log() -{ - // Update "m_worked" by reading wsjtx.log - m_worked.clear(); //Start from scratch - QFile f("wsjtx.log"); - f.open(QIODevice::ReadOnly); - if(f.isOpen()) { - QTextStream in(&f); - QString line,callsign; - for(int i=0; i<99999; i++) { - line=in.readLine(); - if(line.length()<=0) break; - callsign=line.mid(40,6); - int n=callsign.indexOf(","); - if(n>0) callsign=callsign.left(n); - m_worked[callsign]=true; - } - f.close(); - } -} diff --git a/q65w/mainwindow.h b/q65w/mainwindow.h index 7c14d3b2a..488c7813d 100644 --- a/q65w/mainwindow.h +++ b/q65w/mainwindow.h @@ -222,7 +222,6 @@ private: void stub(); bool isGrid4(QString g); bool subProcessFailed (QProcess *, int exit_code, QProcess::ExitStatus); - void read_log(); }; extern void getfile(QString fname, bool xpol, int idInt);