Browse Source

LibTextCodec: Mark compilation-unit-only functions as static

This enables a nice warning in case a function becomes dead code.
Ben Wiederhake 5 years ago
parent
commit
69a0502f80
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Libraries/LibTextCodec/Decoder.cpp

+ 2 - 2
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)