diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-16 16:25:47 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-16 16:25:47 -0300 |
commit | 19eedb476cbcd88606f4699fb1a57fb365b31251 (patch) | |
tree | 884b87814817d746937ac2ea55307d5770da9c17 /src | |
parent | fbd3566a312e647cde57b5d774533731e1aa844d (diff) | |
download | luarocks-19eedb476cbcd88606f4699fb1a57fb365b31251.tar.gz luarocks-19eedb476cbcd88606f4699fb1a57fb365b31251.tar.bz2 luarocks-19eedb476cbcd88606f4699fb1a57fb365b31251.zip |
Configurations for program_series and major_version are unused
They look like useless maintenance burden, and I seriously
doubt anyone uses those in their config files. In any case,
they're easy to derive from cfg.program_version.
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/core/cfg.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index 79ae0417..5b406121 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua | |||
@@ -21,8 +21,6 @@ local vers = require("luarocks.core.vers") | |||
21 | -------------------------------------------------------------------------------- | 21 | -------------------------------------------------------------------------------- |
22 | 22 | ||
23 | local program_version = "dev" | 23 | local program_version = "dev" |
24 | local program_series = "3.0" | ||
25 | local major_version = (program_version:match("([^.]%.[^.])")) or program_series | ||
26 | 24 | ||
27 | local is_windows = package.config:sub(1,1) == "\\" | 25 | local is_windows = package.config:sub(1,1) == "\\" |
28 | 26 | ||
@@ -604,8 +602,6 @@ function cfg.init(detected, warning) | |||
604 | end | 602 | end |
605 | 603 | ||
606 | cfg.program_version = program_version | 604 | cfg.program_version = program_version |
607 | cfg.program_series = program_series | ||
608 | cfg.major_version = major_version | ||
609 | 605 | ||
610 | if hardcoded.IS_BINARY then | 606 | if hardcoded.IS_BINARY then |
611 | cfg.is_binary = true | 607 | cfg.is_binary = true |