CheckBasicStyle: Check number of empty lines between functions (#4267)
Add check for number of empty lines between functions and fix the corresponding failures
This commit is contained in:
@@ -161,7 +161,6 @@ bool cBlockingSslClientSocket::Connect(const AString & a_ServerName, UInt16 a_Po
|
||||
|
||||
|
||||
|
||||
|
||||
void cBlockingSslClientSocket::SetExpectedPeerName(AString a_ExpectedPeerName)
|
||||
{
|
||||
ASSERT(!m_IsConnected); // Must be called before connect
|
||||
@@ -236,7 +235,6 @@ bool cBlockingSslClientSocket::Send(const void * a_Data, size_t a_NumBytes)
|
||||
|
||||
|
||||
|
||||
|
||||
int cBlockingSslClientSocket::Receive(void * a_Data, size_t a_MaxBytes)
|
||||
{
|
||||
// Even if m_IsConnected is false (socket disconnected), the SSL context may have more data in the queue
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
cCallbackSslContext::cCallbackSslContext(void) :
|
||||
m_Callbacks(nullptr)
|
||||
{
|
||||
|
||||
@@ -104,7 +104,6 @@ int cCryptoKey::Encrypt(const Byte * a_PlainData, size_t a_PlainLength, Byte * a
|
||||
|
||||
|
||||
|
||||
|
||||
int cCryptoKey::ParsePublic(const void * a_Data, size_t a_NumBytes)
|
||||
{
|
||||
ASSERT(!IsValid()); // Cannot parse a second key
|
||||
@@ -116,7 +115,6 @@ int cCryptoKey::ParsePublic(const void * a_Data, size_t a_NumBytes)
|
||||
|
||||
|
||||
|
||||
|
||||
int cCryptoKey::ParsePrivate(const void * a_Data, size_t a_NumBytes, const AString & a_Password)
|
||||
{
|
||||
ASSERT(!IsValid()); // Cannot parse a second key
|
||||
|
||||
@@ -49,7 +49,6 @@ public:
|
||||
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// cSha1Checksum:
|
||||
|
||||
@@ -126,7 +125,6 @@ void cSha1Checksum::DigestToJava(const Checksum & a_Digest, AString & a_Out)
|
||||
|
||||
|
||||
|
||||
|
||||
void cSha1Checksum::Restart(void)
|
||||
{
|
||||
mbedtls_sha1_starts(&m_Sha1);
|
||||
|
||||
Reference in New Issue
Block a user