base: Drop unused _ram member variable

Its initialized in constructor but never used. Spotted when building the
code with clang.

Issue #3938
This commit is contained in:
Piotr Tworek 2020-11-04 00:18:24 +01:00 committed by Christian Helmuth
parent 9c3ce58e57
commit 18be6315cb
2 changed files with 3 additions and 4 deletions

View File

@ -309,7 +309,6 @@ class Genode::Trace::Subject_registry
typedef List<Subject> Subjects;
Allocator &_md_alloc;
Ram_allocator &_ram;
Source_registry &_sources;
unsigned _id_cnt { 0 };
Mutex _mutex { };
@ -396,10 +395,10 @@ class Genode::Trace::Subject_registry
* \param ram allocator used for the allocation of trace
* buffers and policy dataspaces.
*/
Subject_registry(Allocator &md_alloc, Ram_allocator &ram,
Subject_registry(Allocator &md_alloc,
Source_registry &sources)
:
_md_alloc(md_alloc), _ram(ram), _sources(sources)
_md_alloc(md_alloc), _sources(sources)
{ }
/**

View File

@ -185,7 +185,7 @@ Session_component::Session_component(Rpc_entrypoint &ep,
_parent_levels(parent_levels),
_sources(sources),
_policies(policies),
_subjects(_subjects_slab, _ram, _sources),
_subjects(_subjects_slab, _sources),
_argument_buffer(_ram, local_rm, arg_buffer_size)
{ }