Removed unused count function
This commit is contained in:
parent
04eaf61c13
commit
564b93f307
@ -5295,9 +5295,6 @@ void MainWindow::on_extFreeTextMsgEdit_currentTextChanged (QString const& text)
|
||||
QStringList MainWindow::buildFT8MessageFrames(QString const& text){
|
||||
QStringList frames;
|
||||
|
||||
//QString input = QString(text); //.replace("\n", " ").replace(" ", " ");
|
||||
//.split(QRegExp("\\n"))
|
||||
|
||||
foreach(QString input, text.split(QRegExp("[\\r\\n]"), QString::SkipEmptyParts)){
|
||||
while(input.size() > 0){
|
||||
QString frame = parseFT8Message(input);
|
||||
@ -5337,23 +5334,6 @@ QString MainWindow::parseFT8Message(QString input){
|
||||
return QString::fromLatin1(msgsent).trimmed();
|
||||
}
|
||||
|
||||
int MainWindow::countFreeTextMsgs(QString input){
|
||||
/*
|
||||
int count = 0;
|
||||
while(input.size() > 0){
|
||||
QString nextTxt = parseFT8Message(input);
|
||||
QRegExp n = QRegExp("^" + QRegExp::escape(nextTxt));
|
||||
int sz = input.size();
|
||||
input = input.remove(n).trimmed();
|
||||
count++;
|
||||
if(input.size() == sz){
|
||||
break;
|
||||
}
|
||||
}
|
||||
return count;
|
||||
*/
|
||||
}
|
||||
|
||||
bool MainWindow::prepareNextMessageFrame()
|
||||
{
|
||||
QString frame = popMessageFrame();
|
||||
|
@ -252,7 +252,6 @@ private slots:
|
||||
void on_extFreeTextMsgEdit_currentTextChanged (QString const&);
|
||||
QStringList buildFT8MessageFrames(QString const& text);
|
||||
QString parseFT8Message(QString input);
|
||||
int countFreeTextMsgs(QString input);
|
||||
bool prepareNextMessageFrame();
|
||||
bool isFreqOffsetFree(int f, int bw);
|
||||
int findFreeFreqOffset(int fmin, int fmax, int bw);
|
||||
|
Loading…
Reference in New Issue
Block a user