Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: remove unused code in consistency ...



details:   https://anonhg.NetBSD.org/src/rev/1e49311d44b3
branches:  trunk
changeset: 368304:1e49311d44b3
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jul 03 20:05:46 2022 +0000

description:
lint: remove unused code in consistency checker

diffstat:

 usr.bin/xlint/lint1/check-msgs.lua |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (24 lines):

diff -r b097cc516245 -r 1e49311d44b3 usr.bin/xlint/lint1/check-msgs.lua
--- a/usr.bin/xlint/lint1/check-msgs.lua        Sun Jul 03 19:58:42 2022 +0000
+++ b/usr.bin/xlint/lint1/check-msgs.lua        Sun Jul 03 20:05:46 2022 +0000
@@ -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 @@
 -- 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))



Home | Main Index | Thread Index | Old Index