mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
refactor: Remove unused struct and function
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
|
|
||||||
namespace BlackCore::Afv
|
namespace BlackCore::Afv
|
||||||
{
|
{
|
||||||
// struct IMsgPack { };
|
|
||||||
|
|
||||||
//! Channel config DTO
|
//! Channel config DTO
|
||||||
struct CryptoDtoChannelConfigDto
|
struct CryptoDtoChannelConfigDto
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user