Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libcurses/slave tests/libcurses: remove unused cod...



details:   https://anonhg.NetBSD.org/src/rev/c63f9cc2c18c
branches:  trunk
changeset: 952661:c63f9cc2c18c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Feb 13 18:24:11 2021 +0000

description:
tests/libcurses: remove unused code in linter

diffstat:

 tests/lib/libcurses/slave/lint.lua |  11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diffs (26 lines):

diff -r 98f34a4d9dae -r c63f9cc2c18c tests/lib/libcurses/slave/lint.lua
--- a/tests/lib/libcurses/slave/lint.lua        Sat Feb 13 18:13:53 2021 +0000
+++ b/tests/lib/libcurses/slave/lint.lua        Sat Feb 13 18:24:11 2021 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/lua
--- $NetBSD: lint.lua,v 1.1 2021/02/12 20:41:37 rillig Exp $
+-- $NetBSD: lint.lua,v 1.2 2021/02/13 18:24:11 rillig Exp $
 
 --[[
 
@@ -83,15 +83,6 @@
 end
 
 
-local function check_file(fname, msgs)
-  local errors = collect_errors(fname, msgs)
-  for _, err in ipairs(errors) do
-    print(err)
-  end
-  return #errors == 0
-end
-
-
 local function main(arg)
   local errors = new_errors()
   check_args(errors)



Home | Main Index | Thread Index | Old Index