Module Name:    src
Committed By:   rillig
Date:           Sun Jul  3 20:05:46 UTC 2022

Modified Files:
        src/usr.bin/xlint/lint1: check-msgs.lua

Log Message:
lint: remove unused code in consistency checker


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/xlint/lint1/check-msgs.lua

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/check-msgs.lua
diff -u src/usr.bin/xlint/lint1/check-msgs.lua:1.14 src/usr.bin/xlint/lint1/check-msgs.lua:1.15
--- src/usr.bin/xlint/lint1/check-msgs.lua:1.14	Sun Jul  3 07:33:08 2022
+++ src/usr.bin/xlint/lint1/check-msgs.lua	Sun Jul  3 20:05:46 2022
@@ -1,5 +1,5 @@
 #! /usr/bin/lua
--- $NetBSD: check-msgs.lua,v 1.14 2022/07/03 07:33:08 rillig Exp $
+-- $NetBSD: check-msgs.lua,v 1.15 2022/07/03 20:05:46 rillig Exp $
 
 --[[
 
@@ -108,13 +108,6 @@ end
 -- Ensure that each test file for a particular message mentions the full text
 -- of that message and the message ID.
 local function check_test_files(msgs)
-
-  local msgids = {}
-  for msgid, _ in pairs(msgs) do
-    table.insert(msgids, msgid)
-  end
-  table.sort(msgids)
-
   local testdir = "../../../tests/usr.bin/xlint/lint1"
   local cmd = ("cd '%s' && printf '%%s\\n' msg_[0-9][0-9][0-9]*.c"):format(testdir)
   local filenames = assert(io.popen(cmd))

Reply via email to