]> git.e2factory.org Git - e2factory.git/commitdiff
source: remove sources_sorted table
authorTobias Ulmer <tu@emlix.com>
Wed, 15 Jun 2016 12:23:29 +0000 (14:23 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
On closer investigation nothing was using this interface.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/source.lua

index 7b79eccd5a297f0b5618a260e5fa00740b9d034b..0bd376f28ce623bf63c4dbd3646732f33b7978fd 100644 (file)
@@ -123,8 +123,6 @@ end
 
 --- Dictionary holding all source objects indexed by their name.
 source.sources = {}
---- Array holding all source objects in alphabetical order.
-source.sources_sorted = {}
 
 --- Gather source paths.
 -- @param info Info table.
@@ -262,11 +260,6 @@ function source.load_source_configs(info)
         source.sources[src:get_name()] = src
     end
 
-    for sourcename,_ in pairs(source.sources) do
-        table.insert(source.sources_sorted, sourcename)
-    end
-    table.sort(source.sources_sorted)
-
     return true
 end