Remove unnecessary virtual specifiers from final classes

This commit is contained in:
Tim Wojtulewicz 2023-01-14 16:23:40 -07:00
parent 6876462f48
commit 7374688d0d
4 changed files with 8 additions and 8 deletions

View file

@ -143,7 +143,7 @@ public:
bool DoInferReturnType() const { return infer_return_type; } bool DoInferReturnType() const { return infer_return_type; }
void SetInferReturnType(bool infer) { infer_return_type = infer; } void SetInferReturnType(bool infer) { infer_return_type = infer; }
virtual TraversalCode Traverse(TraversalCallback* cb) const; TraversalCode Traverse(TraversalCallback* cb) const;
bool HasOptionHandlers() const { return ! option_handlers.empty(); } bool HasOptionHandlers() const { return ! option_handlers.empty(); }

View file

@ -172,10 +172,10 @@ protected:
void DeliverChunk(int& len, const u_char*& data); void DeliverChunk(int& len, const u_char*& data);
void ScanOption(int& len, const u_char*& data); void ScanOption(int& len, const u_char*& data);
virtual void SawOption(unsigned int code); void SawOption(unsigned int code);
virtual void SawOption(unsigned int code, unsigned int subcode); void SawOption(unsigned int code, unsigned int subcode);
virtual void SawSubOption(const char* opt, int len); void SawSubOption(const char* opt, int len);
virtual void BadOptionTermination(unsigned int code); void BadOptionTermination(unsigned int code);
const char* PeerAuthName() const; const char* PeerAuthName() const;
NVT_Analyzer* peer = nullptr; NVT_Analyzer* peer = nullptr;

View file

@ -234,11 +234,11 @@ protected:
}; };
void Init() override; void Init() override;
virtual bool CheckResync(int& len, const u_char*& data, bool orig); bool CheckResync(int& len, const u_char*& data, bool orig);
void DeliverStream(int len, const u_char* data, bool orig) override; void DeliverStream(int len, const u_char* data, bool orig) override;
void Undelivered(uint64_t seq, int len, bool orig) override; void Undelivered(uint64_t seq, int len, bool orig) override;
virtual void NeedResync() void NeedResync()
{ {
resync_state = NEED_RESYNC; resync_state = NEED_RESYNC;
resync_toskip = 0; resync_toskip = 0;

View file

@ -83,7 +83,7 @@ public:
uint64_t DataSeq() const { return LastReassemSeq(); } uint64_t DataSeq() const { return LastReassemSeq(); }
void DeliverBlock(uint64_t seq, int len, const u_char* data); void DeliverBlock(uint64_t seq, int len, const u_char* data);
virtual void Deliver(uint64_t seq, int len, const u_char* data); void Deliver(uint64_t seq, int len, const u_char* data);
TCP_Endpoint* Endpoint() { return endp; } TCP_Endpoint* Endpoint() { return endp; }
const TCP_Endpoint* Endpoint() const { return endp; } const TCP_Endpoint* Endpoint() const { return endp; }