mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Remove use of [[gnu::pure]].
I was messing around with this to tell the compiler that these functions always return the same value no matter how many times you call them. It doesn't really seem to improve code generation and it looks weird so let's just get rid of it.
This commit is contained in:
parent
89c6064141
commit
3dac1f8ac5
Notes:
sideshowbarker
2024-07-19 13:14:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3dac1f8ac5d
5 changed files with 5 additions and 5 deletions
|
@ -15,7 +15,7 @@ class KeyboardDevice final : public IRQHandler
|
|||
public:
|
||||
using Event = KeyEvent;
|
||||
|
||||
[[gnu::pure]] static KeyboardDevice& the();
|
||||
static KeyboardDevice& the();
|
||||
|
||||
virtual ~KeyboardDevice() override;
|
||||
KeyboardDevice();
|
||||
|
|
|
@ -8,7 +8,7 @@ class SlavePTY;
|
|||
|
||||
class DevPtsFS final : public SynthFS {
|
||||
public:
|
||||
[[gnu::pure]] static DevPtsFS& the();
|
||||
static DevPtsFS& the();
|
||||
|
||||
virtual ~DevPtsFS() override;
|
||||
static NonnullRefPtr<DevPtsFS> create();
|
||||
|
|
|
@ -13,7 +13,7 @@ class ProcFS final : public FS {
|
|||
friend class ProcFSInode;
|
||||
|
||||
public:
|
||||
[[gnu::pure]] static ProcFS& the();
|
||||
static ProcFS& the();
|
||||
|
||||
virtual ~ProcFS() override;
|
||||
static NonnullRefPtr<ProcFS> create();
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
RefPtr<Custody> m_host_custody;
|
||||
};
|
||||
|
||||
[[gnu::pure]] static VFS& the();
|
||||
static VFS& the();
|
||||
|
||||
VFS();
|
||||
~VFS();
|
||||
|
|
|
@ -40,7 +40,7 @@ class MemoryManager {
|
|||
friend ByteBuffer procfs$memstat(InodeIdentifier);
|
||||
|
||||
public:
|
||||
[[gnu::pure]] static MemoryManager& the();
|
||||
static MemoryManager& the();
|
||||
|
||||
static void initialize();
|
||||
|
||||
|
|
Loading…
Reference in a new issue