git: 71969b965b60 - stable/14 - loader/lua: Remove pager shim
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 16 Apr 2024 20:13:27 UTC
The branch stable/14 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=71969b965b6051c1af4989efb7665c1e04d89f15
commit 71969b965b6051c1af4989efb7665c1e04d89f15
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-29 17:58:43 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-04-16 19:54:28 +0000
loader/lua: Remove pager shim
Just after 12.2 and before the stable/13 branch, kevans added lpager.c
to provide a pager interface for commands written in lua. It was merged
into 12.3. Now that 12.2 is long since EOL, we can remove the pager shim
here. Nobody needs that old loader + new lua scripts. Plus only one
command is affected.
Sponsored by: Netflix
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D44142
(cherry picked from commit 8b9178cd0d35ff2beafebdd51c8c44ba2b5aeb0f)
---
stand/lua/cli.lua | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/stand/lua/cli.lua b/stand/lua/cli.lua
index 6832da0a31a5..596e55a8d1d8 100644
--- a/stand/lua/cli.lua
+++ b/stand/lua/cli.lua
@@ -30,18 +30,6 @@ local core = require("core")
local cli = {}
-if not pager then
- -- shim for the pager module that just doesn't do it.
- -- XXX Remove after 12.2 goes EoL.
- pager = {
- open = function() end,
- close = function() end,
- output = function(str)
- printc(str)
- end,
- }
-end
-
-- Internal function
-- Parses arguments to boot and returns two values: kernel_name, argstr
-- Defaults to nil and "" respectively.