From 3cbe6ff233c746dbfa6933565d6aacc5092ef80b Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Tue, 28 Feb 2017 20:14:42 +0100 Subject: [PATCH] licence: remove now unused licences_sorted vector Signed-off-by: Tobias Ulmer --- local/licence.lua | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/local/licence.lua b/local/licence.lua index 18a34da..dc6d9aa 100644 --- a/local/licence.lua +++ b/local/licence.lua @@ -33,9 +33,6 @@ local strict = require("strict") --- Dictionary of loaded licence objects, indexed by name. licence.licences = {} ---- Vector of loaded licence objects, sorted by name. -licence.licences_sorted = {} - --- Licence base class. -- @type licence licence.licence = class("licence") @@ -117,8 +114,8 @@ function licence.licence:licenceid() end --- @section end ---- Load project licence config, validate, and populate the licences, --- licences_sorted tables with licence objects. +--- Load project licence config, validate, and populate the licences table with +-- licence objects. -- @return True on success, false on error -- @return Error object on failure. function licence.load_licence_config() @@ -221,15 +218,6 @@ function licence.load_licence_config() end end - for _,l in pairs(licence.licences) do - table.insert(licence.licences_sorted, l) - end - - local function s(a, b) - return a:get_name() < b:get_name() - end - table.sort(licence.licences_sorted, s) - return true end -- 2.39.5