mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
nic_dump: Remove unused Net::Interface::_alloc
This private member variable is not used anywhere in the code. This breaks builds using clang instead of GCC. Drop the variable. Issue #3984
This commit is contained in:
parent
428de89f9a
commit
fc089a1673
@ -73,8 +73,7 @@ Net::Session_component::Session_component(Ram_quota const ram_quota,
|
||||
Session_rpc_object(env.rm(), _tx_buf, _rx_buf, &_range_alloc,
|
||||
env.ep().rpc_ep()),
|
||||
Interface(env.ep(), config.attribute_value("downlink", Interface_label()),
|
||||
timer, curr_time, config.attribute_value("time", false),
|
||||
Session_component_base::_alloc, config),
|
||||
timer, curr_time, config.attribute_value("time", false), config),
|
||||
_uplink(env, config, timer, curr_time, Session_component_base::_alloc),
|
||||
_link_state_handler(env.ep(), *this, &Session_component::_handle_link_state)
|
||||
{
|
||||
|
@ -96,14 +96,12 @@ Net::Interface::Interface(Entrypoint &ep,
|
||||
Timer::Connection &timer,
|
||||
Duration &curr_time,
|
||||
bool log_time,
|
||||
Allocator &alloc,
|
||||
Xml_node config)
|
||||
:
|
||||
_sink_ack { ep, *this, &Interface::_ack_avail },
|
||||
_sink_submit { ep, *this, &Interface::_ready_to_submit },
|
||||
_source_ack { ep, *this, &Interface::_ready_to_ack },
|
||||
_source_submit { ep, *this, &Interface::_packet_avail },
|
||||
_alloc { alloc },
|
||||
_label { label },
|
||||
_timer { timer },
|
||||
_curr_time { curr_time },
|
||||
|
@ -49,7 +49,6 @@ class Net::Interface
|
||||
|
||||
private:
|
||||
|
||||
Genode::Allocator &_alloc;
|
||||
Pointer<Interface> _remote { };
|
||||
Interface_label _label;
|
||||
Timer::Connection &_timer;
|
||||
@ -85,7 +84,6 @@ class Net::Interface
|
||||
Timer::Connection &timer,
|
||||
Genode::Duration &curr_time,
|
||||
bool log_time,
|
||||
Genode::Allocator &alloc,
|
||||
Genode::Xml_node config);
|
||||
|
||||
virtual ~Interface() { }
|
||||
|
@ -32,7 +32,7 @@ Net::Uplink::Uplink(Env &env,
|
||||
Nic::Connection { env, this, BUF_SIZE, BUF_SIZE },
|
||||
Net::Interface { env.ep(), config.attribute_value("uplink", Interface_label()),
|
||||
timer, curr_time, config.attribute_value("time", false),
|
||||
alloc, config }
|
||||
config }
|
||||
{
|
||||
rx_channel()->sigh_ready_to_ack(_sink_ack);
|
||||
rx_channel()->sigh_packet_avail(_sink_submit);
|
||||
|
Loading…
Reference in New Issue
Block a user