mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +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 inputVolumeStream(const Audio::InputVolumeStreamArgs &args);
|
||||
void outputVolumeStream(const Audio::OutputVolumeStreamArgs &args);
|
||||
void inputOpusDataAvailable();
|
||||
|
||||
void onTimerUpdate();
|
||||
void onSettingsChanged();
|
||||
|
||||
@@ -8,14 +8,6 @@ using namespace BlackMisc;
|
||||
|
||||
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)
|
||||
{
|
||||
if (m_receiveSequenceSizeMaxSize < 1) { m_receiveSequenceSizeMaxSize = 1; }
|
||||
|
||||
@@ -21,9 +21,6 @@ namespace BlackCore::Afv::Crypto
|
||||
class CCryptoDtoChannel
|
||||
{
|
||||
public:
|
||||
//! Ctor
|
||||
CCryptoDtoChannel(const QString &channelTag, const QByteArray &aeadReceiveKey, const QByteArray &aeadTransmitKey, int receiveSequenceHistorySize = 10);
|
||||
|
||||
//! Ctor
|
||||
CCryptoDtoChannel(const CryptoDtoChannelConfigDto &channelConfig, int receiveSequenceHistorySize = 10);
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace BlackCore::Afv::Crypto
|
||||
{
|
||||
decryptedPayload.resize(mlen);
|
||||
|
||||
// Fix this:
|
||||
// FIXME:
|
||||
// if (! channel.checkReceivedSequence(header.Sequence)) { }
|
||||
|
||||
QBuffer decryptedPayloadBuffer(&decryptedPayload);
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
|
||||
namespace BlackCore::Afv
|
||||
{
|
||||
// struct IMsgPack { };
|
||||
|
||||
//! Channel config DTO
|
||||
struct CryptoDtoChannelConfigDto
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user