refactor: Remove unused struct and function

This commit is contained in:
Lars Toenning
2024-05-12 19:53:53 +02:00
parent a19be63b37
commit cec87b6768
5 changed files with 1 additions and 15 deletions

View File

@@ -323,7 +323,6 @@ namespace BlackCore::Afv::Clients
void audioOutDataAvailable(const AudioRxOnTransceiversDto &dto); // threadsafe void audioOutDataAvailable(const AudioRxOnTransceiversDto &dto); // threadsafe
void inputVolumeStream(const Audio::InputVolumeStreamArgs &args); void inputVolumeStream(const Audio::InputVolumeStreamArgs &args);
void outputVolumeStream(const Audio::OutputVolumeStreamArgs &args); void outputVolumeStream(const Audio::OutputVolumeStreamArgs &args);
void inputOpusDataAvailable();
void onTimerUpdate(); void onTimerUpdate();
void onSettingsChanged(); void onSettingsChanged();

View File

@@ -8,14 +8,6 @@ using namespace BlackMisc;
namespace BlackCore::Afv::Crypto namespace BlackCore::Afv::Crypto
{ {
CCryptoDtoChannel::CCryptoDtoChannel(const QString &channelTag, const QByteArray &aeadReceiveKey, const QByteArray &aeadTransmitKey, int receiveSequenceHistorySize) : m_aeadTransmitKey(aeadTransmitKey), m_aeadReceiveKey(aeadReceiveKey), m_receiveSequenceSizeMaxSize(receiveSequenceHistorySize), m_channelTag(channelTag)
{
if (m_receiveSequenceSizeMaxSize < 1) { m_receiveSequenceSizeMaxSize = 1; }
m_receiveSequenceHistory.fill(0, m_receiveSequenceSizeMaxSize);
m_receiveSequenceHistoryDepth = 0;
}
CCryptoDtoChannel::CCryptoDtoChannel(const CryptoDtoChannelConfigDto &channelConfig, int receiveSequenceHistorySize) : m_aeadTransmitKey(channelConfig.aeadTransmitKey), m_aeadReceiveKey(channelConfig.aeadReceiveKey), m_receiveSequenceSizeMaxSize(receiveSequenceHistorySize), m_hmacKey(channelConfig.hmacKey), m_channelTag(channelConfig.channelTag) CCryptoDtoChannel::CCryptoDtoChannel(const CryptoDtoChannelConfigDto &channelConfig, int receiveSequenceHistorySize) : m_aeadTransmitKey(channelConfig.aeadTransmitKey), m_aeadReceiveKey(channelConfig.aeadReceiveKey), m_receiveSequenceSizeMaxSize(receiveSequenceHistorySize), m_hmacKey(channelConfig.hmacKey), m_channelTag(channelConfig.channelTag)
{ {
if (m_receiveSequenceSizeMaxSize < 1) { m_receiveSequenceSizeMaxSize = 1; } if (m_receiveSequenceSizeMaxSize < 1) { m_receiveSequenceSizeMaxSize = 1; }

View File

@@ -21,9 +21,6 @@ namespace BlackCore::Afv::Crypto
class CCryptoDtoChannel class CCryptoDtoChannel
{ {
public: public:
//! Ctor
CCryptoDtoChannel(const QString &channelTag, const QByteArray &aeadReceiveKey, const QByteArray &aeadTransmitKey, int receiveSequenceHistorySize = 10);
//! Ctor //! Ctor
CCryptoDtoChannel(const CryptoDtoChannelConfigDto &channelConfig, int receiveSequenceHistorySize = 10); CCryptoDtoChannel(const CryptoDtoChannelConfigDto &channelConfig, int receiveSequenceHistorySize = 10);

View File

@@ -58,7 +58,7 @@ namespace BlackCore::Afv::Crypto
{ {
decryptedPayload.resize(mlen); decryptedPayload.resize(mlen);
// Fix this: // FIXME:
// if (! channel.checkReceivedSequence(header.Sequence)) { } // if (! channel.checkReceivedSequence(header.Sequence)) { }
QBuffer decryptedPayloadBuffer(&decryptedPayload); QBuffer decryptedPayloadBuffer(&decryptedPayload);

View File

@@ -15,8 +15,6 @@
namespace BlackCore::Afv namespace BlackCore::Afv
{ {
// struct IMsgPack { };
//! Channel config DTO //! Channel config DTO
struct CryptoDtoChannelConfigDto struct CryptoDtoChannelConfigDto
{ {