mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
Remove deprecated MemoryAllocation() methods and related code
This commit is contained in:
parent
d3169e48c0
commit
70e63d4749
39 changed files with 15 additions and 659 deletions
21
src/Conn.cc
21
src/Conn.cc
|
@ -380,27 +380,6 @@ void Connection::FlipRoles()
|
|||
AddHistory('^');
|
||||
}
|
||||
|
||||
unsigned int Connection::MemoryAllocation() const
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
return session::Session::MemoryAllocation() + padded_sizeof(*this) +
|
||||
(timers.MemoryAllocation() - padded_sizeof(timers)) +
|
||||
(conn_val ? conn_val->MemoryAllocation() : 0) +
|
||||
(adapter ? adapter->MemoryAllocation() : 0)
|
||||
// primary_PIA is already contained in the analyzer tree.
|
||||
;
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
unsigned int Connection::MemoryAllocationVal() const
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
return conn_val ? conn_val->MemoryAllocation() : 0;
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
void Connection::Describe(ODesc* d) const
|
||||
{
|
||||
session::Session::Describe(d);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue