1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

Applications: 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-10 23:51:31 +02:00 committed by Andreas Kling
parent 5fe6ca75ca
commit ef9a3b8e46
3 changed files with 6 additions and 6 deletions

View file

@ -53,7 +53,7 @@ struct ContentPage {
Vector<String> content;
};
Optional<Vector<ContentPage>> parse_welcome_file(const String& path)
static Optional<Vector<ContentPage>> parse_welcome_file(const String& path)
{
const auto error = Optional<Vector<ContentPage>>();
auto file = Core::File::construct(path);