Services: Mark compilation-unit-only functions as static

This enables a nice warning in case a function becomes dead code.
This commit is contained in:
Ben Wiederhake 2020-08-11 00:03:04 +02:00 committed by Andreas Kling
parent 76da9a4a7d
commit 3ec7b8b33c
Notes: sideshowbarker 2024-07-19 03:42:37 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -29,8 +29,8 @@
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h>
#include <LibGUI/Desktop.h>
#include <LibGUI/Label.h>
#include <LibGUI/ImageWidget.h>
#include <LibGUI/Label.h>
#include <LibGUI/Widget.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/Font.h>
@ -40,7 +40,7 @@ namespace NotificationServer {
static Vector<RefPtr<NotificationWindow>> s_windows;
void update_notification_window_locations()
static void update_notification_window_locations()
{
Gfx::IntRect last_window_rect;
for (auto& window : s_windows) {

View file

@ -45,7 +45,7 @@ Compositor& Compositor::the()
return s_the;
}
WallpaperMode mode_to_enum(const String& name)
static WallpaperMode mode_to_enum(const String& name)
{
if (name == "simple")
return WallpaperMode::Simple;