Skip to content

Commit

Permalink
Remove commented out tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Nov 7, 2024
1 parent b0ac303 commit f6b065b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
28 changes: 0 additions & 28 deletions resources/asciidoctor/lib/elastic_compat_preprocessor/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,6 @@ class ElasticCompatPreprocessor < Asciidoctor::Extensions::Preprocessor
MACROS = "#{LEGACY}|#{BETA}|#{COMING}|#{DEP}|#{DEV}|#{DISC}|#{GA}|#{PREV}"
BLOCK_MACRO_RX = /^\s*(#{MACROS})\[(.*)\]\s*$/
INLINE_MACRO_RX = /(#{MACROS})\[(.*)\]/
# BETA_BLOCK_MACRO_RX = /^\s*(#{BETA_MACROS})\[(.*)\]\s*$/
# BETA_INLINE_MACRO_RX = /(#{BETA_MACROS})\[(.*)\]/
# COMING_BLOCK_MACRO_RX = /^\s*(#{COMING_MACROS})\[(.*)\]\s*$/
# COMING_INLINE_MACRO_RX = /(#{COMING_MACROS})\[(.*)\]/
# DEP_BLOCK_MACRO_RX = /^\s*(#{DEP_MACROS})\[(.*)\]\s*$/
# DEP_INLINE_MACRO_RX = /(#{DEP_MACROS})\[(.*)\]/
# DEV_BLOCK_MACRO_RX = /^\s*(#{DEV_MACROS})\[(.*)\]\s*$/
# DEV_INLINE_MACRO_RX = /(#{DEV_MACROS})\[(.*)\]/
# DISC_BLOCK_MACRO_RX = /^\s*(#{DISC_MACROS})\[(.*)\]\s*$/
# DISC_INLINE_MACRO_RX = /(#{DISC_MACROS})\[(.*)\]/
# GA_BLOCK_MACRO_RX = /^\s*(#{GA_MACROS})\[(.*)\]\s*$/
# GA_INLINE_MACRO_RX = /(#{GA_MACROS})\[(.*)\]/
# PREV_BLOCK_MACRO_RX = /^\s*(#{PREV_MACROS})\[(.*)\]\s*$/
# PREV_INLINE_MACRO_RX = /(#{PREV_MACROS})\[(.*)\]/

def process(_document, reader)
reader.extend ReaderExtension
Expand Down Expand Up @@ -236,23 +222,9 @@ def postprocess(line)
# First convert the "block" version of these macros. We convert them
# to block macros because they are alone on a line
line.gsub!(BLOCK_MACRO_RX, '\1::[\2]')
# line.gsub!(BETA_BLOCK_MACRO_RX, '\1::[\2]')
# line.gsub!(COMING_BLOCK_MACRO_RX, '\1::[\2]')
# line.gsub!(DEP_BLOCK_MACRO_RX, '\1::[\2]')
# line.gsub!(DEV_BLOCK_MACRO_RX, '\1::[\2]')
# line.gsub!(DISC_BLOCK_MACRO_RX, '\1::[\2]')
# line.gsub!(GA_BLOCK_MACRO_RX, '\1::[\2]')
# line.gsub!(PREV_BLOCK_MACRO_RX, '\1::[\2]')
# Then convert the "inline" version of these macros. We convert them
# to inline macros because they are *not* at the start of the line....
line.gsub!(INLINE_MACRO_RX, '\1:[\2]')
# line.gsub!(BETA_INLINE_MACRO_RX, '\1:[\2]')
# line.gsub!(COMING_INLINE_MACRO_RX, '\1:[\2]')
# line.gsub!(DEP_INLINE_MACRO_RX, '\1:[\2]')
# line.gsub!(DEV_INLINE_MACRO_RX, '\1:[\2]')
# line.gsub!(DISC_INLINE_MACRO_RX, '\1:[\2]')
# line.gsub!(GA_INLINE_MACRO_RX, '\1:[\2]')
# line.gsub!(PREV_INLINE_MACRO_RX, '\1:[\2]')
# Transform Elastic's traditional comment based marking for
# AUTOSENSE/KIBANA/CONSOLE snippets into a marker that we can pick
# up during tree processing to turn the snippet into a marked up
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,6 @@
let(:name) { 'deprecated_ess' }
let(:inline_admon_class) { 'ESS:deprecated' }
end
# context 'for discontinued in stack' do
# include_context 'change admonition'
# let(:name) { 'discontinued_stack' }
# let(:block_admon_class) { 'warning' }
# let(:inline_admon_class) { 'change' }
# end
end

context 'when the document contains include-tagged::' do
Expand Down

0 comments on commit f6b065b

Please sign in to comment.