mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
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: b4ce1e2e62
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 Processor;
|
||||||
|
|
||||||
class ProcessorInfo {
|
class ProcessorInfo {
|
||||||
Processor& m_processor;
|
|
||||||
String m_cpuid;
|
String m_cpuid;
|
||||||
String m_brand;
|
String m_brand;
|
||||||
NonnullOwnPtr<KString> m_features;
|
NonnullOwnPtr<KString> m_features;
|
||||||
|
@ -29,7 +28,7 @@ class ProcessorInfo {
|
||||||
u32 m_apic_id;
|
u32 m_apic_id;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ProcessorInfo(Processor& processor);
|
ProcessorInfo(Processor const& processor);
|
||||||
|
|
||||||
const String& cpuid() const { return m_cpuid; }
|
const String& cpuid() const { return m_cpuid; }
|
||||||
const String& brand() const { return m_brand; }
|
const String& brand() const { return m_brand; }
|
||||||
|
|
|
@ -12,9 +12,8 @@
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
ProcessorInfo::ProcessorInfo(Processor& processor)
|
ProcessorInfo::ProcessorInfo(Processor const& processor)
|
||||||
: m_processor(processor)
|
: m_features(processor.features_string())
|
||||||
, m_features(m_processor.features_string())
|
|
||||||
{
|
{
|
||||||
u32 max_leaf;
|
u32 max_leaf;
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue