From 28531722f9879dc487d7ebfdb483a57d0898ffed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Recai=20Okta=C5=9F?= Date: Sat, 14 Sep 2024 12:04:24 +0300 Subject: [PATCH] . --- .../lib/sevgi/graphics/mixtures/underscore.rb | 6 ----- .../test/graphics/mixtures/underscore_test.rb | 26 ------------------- 2 files changed, 32 deletions(-) diff --git a/graphics/lib/sevgi/graphics/mixtures/underscore.rb b/graphics/lib/sevgi/graphics/mixtures/underscore.rb index 806797a..af89d7b 100644 --- a/graphics/lib/sevgi/graphics/mixtures/underscore.rb +++ b/graphics/lib/sevgi/graphics/mixtures/underscore.rb @@ -12,12 +12,6 @@ def Comment(comment) _ Content.verbatim("") end - def Mark(begining: "BEGIN", ending: "END") - Comment(begining) - yield - Comment(ending) - end - def Ancestral {}.tap do |result| Root.Traverse { |element| result.merge!(element[:_]) if element.has?(:_) } diff --git a/graphics/test/graphics/mixtures/underscore_test.rb b/graphics/test/graphics/mixtures/underscore_test.rb index 866ac2c..1f2d63f 100644 --- a/graphics/test/graphics/mixtures/underscore_test.rb +++ b/graphics/test/graphics/mixtures/underscore_test.rb @@ -53,32 +53,6 @@ def test_underscore_comment assert_equal(expected, actual) end - - def test_underscore_mark - expected = <<~SVG.chomp - - - - You are - not - a banana - - - - SVG - - actual = SVG DOC do - Mark do - text do - _ "You are" - tspan "not" - _ "a banana" - end - end - end.Render - - assert_equal(expected, actual) - end end end end