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:
Johanna Amann 2018-03-16 18:38:04 -07:00
parent 911018347f
commit 1f2bf50b49
19 changed files with 0 additions and 61 deletions

View file

@ -117,8 +117,6 @@ typedef PList(DFA_State) DFA_state_list;
class DFA_Machine : public BroObj {
public:
DFA_Machine(NFA_Machine* n, EquivClass* ec);
DFA_Machine(int** xtion_ptrs, int num_states, int num_ecs,
int* acc_array);
~DFA_Machine();
DFA_State* StartState() const { return start_state; }

View file

@ -109,8 +109,6 @@ public:
// which should be delete'd when no longer needed.
IterCookie* InitForIteration() 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 SetDeleteFunc(dict_delete_func f) { delete_func = f; }

View file

@ -118,7 +118,6 @@ public:
protected:
ID() { name = 0; type = 0; val = 0; attrs = 0; }
void CheckAttr(Attr* attr);
void EvalFunc(Expr* ef, Expr* ev);
#ifdef DEBUG

View file

@ -90,13 +90,6 @@ public:
uint8 TTL, uint16 WSS, uint8 ocnt, uint8* op, uint16 MSS,
uint8 win_scale, uint32 tstamp, uint32 quirks, uint8 ECN) const;
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);
protected:

View file

@ -106,7 +106,6 @@ public:
protected:
friend class Val;
EntropyVal(OpaqueType* t);
DECLARE_SERIAL(EntropyVal);

View file

@ -175,7 +175,6 @@ public:
RE_Matcher(const char* pat);
virtual ~RE_Matcher();
void AddDef(const char* defn_name, const char* defn_val);
void AddPat(const char* pat);
int Compile(int lazy = 0);

View file

@ -150,7 +150,6 @@ public:
int Size() const { return q->Size(); }
int PeakSize() const { return q->PeakSize(); }
uint64 CumulativeNum() const { return q->CumulativeNum(); }
unsigned int MemoryUsage() const;
protected:
int DoAdvance(double t, int max_expire);

View file

@ -18,8 +18,6 @@ public:
{ return new AYIYA_Analyzer(conn); }
protected:
void ExpireTimer(double t);
binpac::AYIYA::AYIYA_Conn* interp;
};

View file

@ -18,8 +18,6 @@ public:
{ return new GTPv1_Analyzer(conn); }
protected:
void ExpireTimer(double t);
binpac::GTPv1::GTPv1_Conn* interp;
};

View file

@ -155,8 +155,6 @@ public:
HTTP_Analyzer(Connection* conn);
~HTTP_Analyzer();
void Undelivered(tcp::TCP_Endpoint* sender, uint64 seq, int len);
void HTTP_Header(int is_orig, mime::MIME_Header* h);
void HTTP_EntityData(int is_orig, BroString* entity_data);
void HTTP_MessageDone(int is_orig, HTTP_Message* message);

View file

@ -25,8 +25,6 @@ public:
{ return new ICMP_Analyzer(conn); }
protected:
ICMP_Analyzer(analyzer::Tag tag, Connection* conn);
virtual void Done();
virtual void DeliverPacket(int len, const u_char* data, bool orig,
uint64 seq, const IP_Hdr* ip, int caplen);
@ -38,8 +36,6 @@ protected:
void Echo(double t, const struct icmp* icmpp, int len,
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,
int caplen, const u_char*& data, const IP_Hdr* ip_hdr);
void RouterAdvert(double t, const struct icmp* icmpp, int len,

View file

@ -74,7 +74,6 @@ protected:
// * 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);
RecordVal* ExtractOptAttrs(const u_char*& buf, int& n);
Val* ExtractUint32(const u_char*& buf, int& n);
Val* ExtractUint64(const u_char*& buf, int& n);
Val* ExtractTime(const u_char*& buf, int& n);

View file

@ -22,8 +22,6 @@ public:
{ return new Syslog_Analyzer(conn); }
protected:
void ExpireTimer(double t);
int did_session_done;
binpac::Syslog::Syslog_Conn* interp;

View file

@ -49,8 +49,6 @@ public:
}
protected:
void ExpireTimer(double t);
bool valid_orig;
bool valid_resp;
};

View file

@ -29,11 +29,6 @@ public:
*/
Component(const std::string& name);
/**
* Copy constructor.
*/
Component(const Component& other);
/**
* Destructor.
*/

View file

@ -54,13 +54,6 @@ public:
*/
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.
/**

View file

@ -92,11 +92,6 @@ public:
*/
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
* current packet. Undefined if not running pseudo-realtime mode.

View file

@ -275,7 +275,6 @@ private:
void RemoveDisabledWriters(Stream* stream);
void InstallRotationTimer(WriterInfo* winfo);
void Rotate(WriterInfo* info);
Filter* FindFilter(EnumVal* id, StringVal* filter);
WriterInfo* FindWriter(WriterFrontend* writer);
bool CompareFields(const Filter* filter, const WriterFrontend* writer);
bool CheckFilterWriterConflict(const WriterInfo* winfo, const Filter* filter);

View file

@ -138,19 +138,6 @@ public:
*/
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()
* operations over to the backend.