mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Remove unimplemented & unused functions from header files.
All of these functions were defined in header files without ever being implemented or used.
This commit is contained in:
parent
911018347f
commit
1f2bf50b49
19 changed files with 0 additions and 61 deletions
|
@ -117,8 +117,6 @@ typedef PList(DFA_State) DFA_state_list;
|
||||||
class DFA_Machine : public BroObj {
|
class DFA_Machine : public BroObj {
|
||||||
public:
|
public:
|
||||||
DFA_Machine(NFA_Machine* n, EquivClass* ec);
|
DFA_Machine(NFA_Machine* n, EquivClass* ec);
|
||||||
DFA_Machine(int** xtion_ptrs, int num_states, int num_ecs,
|
|
||||||
int* acc_array);
|
|
||||||
~DFA_Machine();
|
~DFA_Machine();
|
||||||
|
|
||||||
DFA_State* StartState() const { return start_state; }
|
DFA_State* StartState() const { return start_state; }
|
||||||
|
|
|
@ -109,8 +109,6 @@ public:
|
||||||
// which should be delete'd when no longer needed.
|
// which should be delete'd when no longer needed.
|
||||||
IterCookie* InitForIteration() const;
|
IterCookie* InitForIteration() const;
|
||||||
void* NextEntry(HashKey*& h, IterCookie*& cookie, int return_hash) const;
|
void* NextEntry(HashKey*& h, IterCookie*& cookie, int return_hash) const;
|
||||||
void* NextEntry(const void*& key, int& key_len, IterCookie*& cookie)
|
|
||||||
const;
|
|
||||||
void StopIteration(IterCookie* cookie) const;
|
void StopIteration(IterCookie* cookie) const;
|
||||||
|
|
||||||
void SetDeleteFunc(dict_delete_func f) { delete_func = f; }
|
void SetDeleteFunc(dict_delete_func f) { delete_func = f; }
|
||||||
|
|
1
src/ID.h
1
src/ID.h
|
@ -118,7 +118,6 @@ public:
|
||||||
protected:
|
protected:
|
||||||
ID() { name = 0; type = 0; val = 0; attrs = 0; }
|
ID() { name = 0; type = 0; val = 0; attrs = 0; }
|
||||||
|
|
||||||
void CheckAttr(Attr* attr);
|
|
||||||
void EvalFunc(Expr* ef, Expr* ev);
|
void EvalFunc(Expr* ef, Expr* ev);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
|
@ -90,13 +90,6 @@ public:
|
||||||
uint8 TTL, uint16 WSS, uint8 ocnt, uint8* op, uint16 MSS,
|
uint8 TTL, uint16 WSS, uint8 ocnt, uint8* op, uint16 MSS,
|
||||||
uint8 win_scale, uint32 tstamp, uint32 quirks, uint8 ECN) const;
|
uint8 win_scale, uint32 tstamp, uint32 quirks, uint8 ECN) const;
|
||||||
bool CacheMatch(const IPAddr& addr, int id);
|
bool CacheMatch(const IPAddr& addr, int id);
|
||||||
|
|
||||||
int Get_OS_From_SYN(struct os_type* retval,
|
|
||||||
uint16 tot, uint8 DF_flag, uint8 TTL, uint16 WSS,
|
|
||||||
uint8 ocnt, uint8* op, uint16 MSS, uint8 win_scale,
|
|
||||||
uint32 tstamp, /* uint8 TOS, */ uint32 quirks,
|
|
||||||
uint8 ecn) const;
|
|
||||||
|
|
||||||
void load_config(const char* file);
|
void load_config(const char* file);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -106,7 +106,6 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class Val;
|
friend class Val;
|
||||||
EntropyVal(OpaqueType* t);
|
|
||||||
|
|
||||||
DECLARE_SERIAL(EntropyVal);
|
DECLARE_SERIAL(EntropyVal);
|
||||||
|
|
||||||
|
|
1
src/RE.h
1
src/RE.h
|
@ -175,7 +175,6 @@ public:
|
||||||
RE_Matcher(const char* pat);
|
RE_Matcher(const char* pat);
|
||||||
virtual ~RE_Matcher();
|
virtual ~RE_Matcher();
|
||||||
|
|
||||||
void AddDef(const char* defn_name, const char* defn_val);
|
|
||||||
void AddPat(const char* pat);
|
void AddPat(const char* pat);
|
||||||
|
|
||||||
int Compile(int lazy = 0);
|
int Compile(int lazy = 0);
|
||||||
|
|
|
@ -150,7 +150,6 @@ public:
|
||||||
int Size() const { return q->Size(); }
|
int Size() const { return q->Size(); }
|
||||||
int PeakSize() const { return q->PeakSize(); }
|
int PeakSize() const { return q->PeakSize(); }
|
||||||
uint64 CumulativeNum() const { return q->CumulativeNum(); }
|
uint64 CumulativeNum() const { return q->CumulativeNum(); }
|
||||||
unsigned int MemoryUsage() const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int DoAdvance(double t, int max_expire);
|
int DoAdvance(double t, int max_expire);
|
||||||
|
|
|
@ -18,8 +18,6 @@ public:
|
||||||
{ return new AYIYA_Analyzer(conn); }
|
{ return new AYIYA_Analyzer(conn); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void ExpireTimer(double t);
|
|
||||||
|
|
||||||
binpac::AYIYA::AYIYA_Conn* interp;
|
binpac::AYIYA::AYIYA_Conn* interp;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,6 @@ public:
|
||||||
{ return new GTPv1_Analyzer(conn); }
|
{ return new GTPv1_Analyzer(conn); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void ExpireTimer(double t);
|
|
||||||
|
|
||||||
binpac::GTPv1::GTPv1_Conn* interp;
|
binpac::GTPv1::GTPv1_Conn* interp;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -155,8 +155,6 @@ public:
|
||||||
HTTP_Analyzer(Connection* conn);
|
HTTP_Analyzer(Connection* conn);
|
||||||
~HTTP_Analyzer();
|
~HTTP_Analyzer();
|
||||||
|
|
||||||
void Undelivered(tcp::TCP_Endpoint* sender, uint64 seq, int len);
|
|
||||||
|
|
||||||
void HTTP_Header(int is_orig, mime::MIME_Header* h);
|
void HTTP_Header(int is_orig, mime::MIME_Header* h);
|
||||||
void HTTP_EntityData(int is_orig, BroString* entity_data);
|
void HTTP_EntityData(int is_orig, BroString* entity_data);
|
||||||
void HTTP_MessageDone(int is_orig, HTTP_Message* message);
|
void HTTP_MessageDone(int is_orig, HTTP_Message* message);
|
||||||
|
|
|
@ -25,8 +25,6 @@ public:
|
||||||
{ return new ICMP_Analyzer(conn); }
|
{ return new ICMP_Analyzer(conn); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ICMP_Analyzer(analyzer::Tag tag, Connection* conn);
|
|
||||||
|
|
||||||
virtual void Done();
|
virtual void Done();
|
||||||
virtual void DeliverPacket(int len, const u_char* data, bool orig,
|
virtual void DeliverPacket(int len, const u_char* data, bool orig,
|
||||||
uint64 seq, const IP_Hdr* ip, int caplen);
|
uint64 seq, const IP_Hdr* ip, int caplen);
|
||||||
|
@ -38,8 +36,6 @@ protected:
|
||||||
|
|
||||||
void Echo(double t, const struct icmp* icmpp, int len,
|
void Echo(double t, const struct icmp* icmpp, int len,
|
||||||
int caplen, const u_char*& data, const IP_Hdr* ip_hdr);
|
int caplen, const u_char*& data, const IP_Hdr* ip_hdr);
|
||||||
void Context(double t, const struct icmp* icmpp, int len,
|
|
||||||
int caplen, const u_char*& data, const IP_Hdr* ip_hdr);
|
|
||||||
void Redirect(double t, const struct icmp* icmpp, int len,
|
void Redirect(double t, const struct icmp* icmpp, int len,
|
||||||
int caplen, const u_char*& data, const IP_Hdr* ip_hdr);
|
int caplen, const u_char*& data, const IP_Hdr* ip_hdr);
|
||||||
void RouterAdvert(double t, const struct icmp* icmpp, int len,
|
void RouterAdvert(double t, const struct icmp* icmpp, int len,
|
||||||
|
|
|
@ -74,7 +74,6 @@ protected:
|
||||||
// * size is the amount of bytes read (or requested to be written),
|
// * size is the amount of bytes read (or requested to be written),
|
||||||
StringVal* nfs3_file_data(const u_char*& buf, int& n, uint64_t offset, int size);
|
StringVal* nfs3_file_data(const u_char*& buf, int& n, uint64_t offset, int size);
|
||||||
|
|
||||||
RecordVal* ExtractOptAttrs(const u_char*& buf, int& n);
|
|
||||||
Val* ExtractUint32(const u_char*& buf, int& n);
|
Val* ExtractUint32(const u_char*& buf, int& n);
|
||||||
Val* ExtractUint64(const u_char*& buf, int& n);
|
Val* ExtractUint64(const u_char*& buf, int& n);
|
||||||
Val* ExtractTime(const u_char*& buf, int& n);
|
Val* ExtractTime(const u_char*& buf, int& n);
|
||||||
|
|
|
@ -22,8 +22,6 @@ public:
|
||||||
{ return new Syslog_Analyzer(conn); }
|
{ return new Syslog_Analyzer(conn); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void ExpireTimer(double t);
|
|
||||||
|
|
||||||
int did_session_done;
|
int did_session_done;
|
||||||
|
|
||||||
binpac::Syslog::Syslog_Conn* interp;
|
binpac::Syslog::Syslog_Conn* interp;
|
||||||
|
|
|
@ -49,8 +49,6 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void ExpireTimer(double t);
|
|
||||||
|
|
||||||
bool valid_orig;
|
bool valid_orig;
|
||||||
bool valid_resp;
|
bool valid_resp;
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,11 +29,6 @@ public:
|
||||||
*/
|
*/
|
||||||
Component(const std::string& name);
|
Component(const std::string& name);
|
||||||
|
|
||||||
/**
|
|
||||||
* Copy constructor.
|
|
||||||
*/
|
|
||||||
Component(const Component& other);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructor.
|
* Destructor.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -54,13 +54,6 @@ public:
|
||||||
*/
|
*/
|
||||||
int HdrSize() const;
|
int HdrSize() const;
|
||||||
|
|
||||||
/**
|
|
||||||
* Writes a packet to the dumper.
|
|
||||||
*
|
|
||||||
* @param pkt The packet to record.
|
|
||||||
*/
|
|
||||||
bool Record(const Packet* pkt);
|
|
||||||
|
|
||||||
// PktDumper interface for derived classes to implement.
|
// PktDumper interface for derived classes to implement.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -92,11 +92,6 @@ public:
|
||||||
*/
|
*/
|
||||||
const char* ErrorMsg() const;
|
const char* ErrorMsg() const;
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the size of the link-layer header for this source.
|
|
||||||
*/
|
|
||||||
int HdrSize() const;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* In pseudo-realtime mode, returns the logical timestamp of the
|
* In pseudo-realtime mode, returns the logical timestamp of the
|
||||||
* current packet. Undefined if not running pseudo-realtime mode.
|
* current packet. Undefined if not running pseudo-realtime mode.
|
||||||
|
|
|
@ -275,7 +275,6 @@ private:
|
||||||
void RemoveDisabledWriters(Stream* stream);
|
void RemoveDisabledWriters(Stream* stream);
|
||||||
void InstallRotationTimer(WriterInfo* winfo);
|
void InstallRotationTimer(WriterInfo* winfo);
|
||||||
void Rotate(WriterInfo* info);
|
void Rotate(WriterInfo* info);
|
||||||
Filter* FindFilter(EnumVal* id, StringVal* filter);
|
|
||||||
WriterInfo* FindWriter(WriterFrontend* writer);
|
WriterInfo* FindWriter(WriterFrontend* writer);
|
||||||
bool CompareFields(const Filter* filter, const WriterFrontend* writer);
|
bool CompareFields(const Filter* filter, const WriterFrontend* writer);
|
||||||
bool CheckFilterWriterConflict(const WriterInfo* winfo, const Filter* filter);
|
bool CheckFilterWriterConflict(const WriterInfo* winfo, const Filter* filter);
|
||||||
|
|
|
@ -138,19 +138,6 @@ public:
|
||||||
*/
|
*/
|
||||||
void Rotate(const char* rotated_path, double open, double close, bool terminating);
|
void Rotate(const char* rotated_path, double open, double close, bool terminating);
|
||||||
|
|
||||||
/**
|
|
||||||
* Finalizes writing to this tream.
|
|
||||||
*
|
|
||||||
* This method generates a message to the backend writer and triggers
|
|
||||||
* the corresponding message there. If the backend method fails, it
|
|
||||||
* sends a message back that will asynchronously call Disable().
|
|
||||||
*
|
|
||||||
* This method must only be called from the main thread.
|
|
||||||
*
|
|
||||||
* @param network_time The network time when the finish was triggered.
|
|
||||||
*/
|
|
||||||
void Finish(double network_time);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Explicitly triggers a transfer of all potentially buffered Write()
|
* Explicitly triggers a transfer of all potentially buffered Write()
|
||||||
* operations over to the backend.
|
* operations over to the backend.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue