From b8a26d5ec6cdee467e0961c9b8ba066e676d9f08 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sun, 5 Apr 2020 13:57:28 -0400 Subject: [PATCH] Deprecated the huff encoded frame types for a more efficient version in subsequent releases --- decodedtext.cpp | 9 --------- varicode.cpp | 3 +++ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/decodedtext.cpp b/decodedtext.cpp index 4ffb3d4..e37e974 100644 --- a/decodedtext.cpp +++ b/decodedtext.cpp @@ -273,15 +273,6 @@ bool DecodedText::tryUnpackFastData(){ return false; } - if( - submode_ != Varicode::JS8CallFast && - submode_ != Varicode::JS8CallTurbo && - submode_ != Varicode::JS8CallSlow && - submode_ != Varicode::JS8CallUltra - ){ - return false; - } - QString data = Varicode::unpackFastDataMessage(m); if(data.isEmpty()){ diff --git a/varicode.cpp b/varicode.cpp index 2800a43..ff3f305 100644 --- a/varicode.cpp +++ b/varicode.cpp @@ -1789,6 +1789,7 @@ QString packCompressedMessage(const QString &input, QVector prefix, int *n return frame; } +// TODO: DEPRECATED in 2.2 (we will eventually stop transmitting these frames) // pack data message using 70 bits available flagged as data by the first 2 bits QString Varicode::packDataMessage(const QString &input, int *n){ QString huffFrame; @@ -1808,6 +1809,7 @@ QString Varicode::packDataMessage(const QString &input, int *n){ } } +// TODO: DEPRECATED in 2.2 (still available for decoding legacy frames, but will eventually no longer be decodable) // unpack data message using 70 bits available flagged as data by the first 2 bits QString Varicode::unpackDataMessage(const QString &text){ QString unpacked; @@ -2039,6 +2041,7 @@ QList> Varicode::buildMessageFrames(QString const& mycall, int m = 0; bool fastDataFrame = false; QString datFrame; + // TODO: DEPRECATED in 2.2 (the following release will remove transmission of these frames) if(submode == Varicode::JS8CallNormal){ datFrame = Varicode::packDataMessage(line, &m); fastDataFrame = false;