From ef774194dc083dec233b81bc6b31a4e0ef7dd83d Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Fri, 16 Aug 2019 13:37:11 +0200 Subject: [PATCH] Removed .spec-related upstreamed code. --- src/recipe.cr | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) diff --git a/src/recipe.cr b/src/recipe.cr index b97ae12..78f1180 100644 --- a/src/recipe.cr +++ b/src/recipe.cr @@ -30,56 +30,6 @@ module FileUtils end end -# FIXME: This could probably be shorter and less stupid with a macro or two. -class SpecFileParser::StringContainer - def as_s : String - value - end - def as_a_or_s : Array(String) - # FIXME: We should probably be splitting the string around comas. - [value] - end - def as_s_or_ls : String - value - end -end - -class SpecFileParser::LongStringContainer - def as_s : String - raise "short string expected, got multiline text section" - end - def as_a_or_s : Array(String) - raise "list or string expected, got multiline text section" - end - def as_s_or_ls : String - value - end -end - -class SpecFileParser::ArrayContainer - def as_s : String - raise "string expected, got list" - end - def as_a_or_s : Array(String) - value - end - def as_s_or_ls : String - raise "string or multiline text section expected, got list" - end -end - -class SpecFileParser::SectionContainer - def as_s : String - raise "string expected, got section" - end - def as_a_or_s : Array(String) - raise "list or string expected, got section" - end - def as_s_or_ls : String - raise "string or multiline text section expected, got section" - end -end - class Package::Recipe @context : Context