From 69a0502f804108f7d2488d00e86d69ea370615cc Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Tue, 11 Aug 2020 00:10:37 +0200 Subject: [PATCH] LibTextCodec: Mark compilation-unit-only functions as static This enables a nice warning in case a function becomes dead code. --- Libraries/LibTextCodec/Decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibTextCodec/Decoder.cpp b/Libraries/LibTextCodec/Decoder.cpp index 2c62037962..c4e3c94dd9 100644 --- a/Libraries/LibTextCodec/Decoder.cpp +++ b/Libraries/LibTextCodec/Decoder.cpp @@ -30,7 +30,7 @@ namespace TextCodec { -Latin1Decoder& latin1_decoder() +static Latin1Decoder& latin1_decoder() { static Latin1Decoder* decoder; if (!decoder) @@ -38,7 +38,7 @@ Latin1Decoder& latin1_decoder() return *decoder; } -UTF8Decoder& utf8_decoder() +static UTF8Decoder& utf8_decoder() { static UTF8Decoder* decoder; if (!decoder)