Kernel: Remove unused ProcessorInfo::m_processor field
This commit is contained in:
parent
f9528f1882
commit
b4ce1e2e62
Notes:
sideshowbarker
2024-07-17 21:04:26 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/b4ce1e2e622 Pull-request: https://github.com/SerenityOS/serenity/pull/11817 Reviewed-by: https://github.com/bgianfo ✅
2 changed files with 3 additions and 5 deletions
|
@ -18,7 +18,6 @@ namespace Kernel {
|
|||
class Processor;
|
||||
|
||||
class ProcessorInfo {
|
||||
Processor& m_processor;
|
||||
String m_cpuid;
|
||||
String m_brand;
|
||||
NonnullOwnPtr<KString> m_features;
|
||||
|
@ -29,7 +28,7 @@ class ProcessorInfo {
|
|||
u32 m_apic_id;
|
||||
|
||||
public:
|
||||
ProcessorInfo(Processor& processor);
|
||||
ProcessorInfo(Processor const& processor);
|
||||
|
||||
const String& cpuid() const { return m_cpuid; }
|
||||
const String& brand() const { return m_brand; }
|
||||
|
|
|
@ -12,9 +12,8 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
ProcessorInfo::ProcessorInfo(Processor& processor)
|
||||
: m_processor(processor)
|
||||
, m_features(m_processor.features_string())
|
||||
ProcessorInfo::ProcessorInfo(Processor const& processor)
|
||||
: m_features(processor.features_string())
|
||||
{
|
||||
u32 max_leaf;
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue