Skip to content

Commit f6b065b

Browse files
committed
Remove commented out tests
1 parent b0ac303 commit f6b065b

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

resources/asciidoctor/lib/elastic_compat_preprocessor/extension.rb

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -135,20 +135,6 @@ class ElasticCompatPreprocessor < Asciidoctor::Extensions::Preprocessor
135135
MACROS = "#{LEGACY}|#{BETA}|#{COMING}|#{DEP}|#{DEV}|#{DISC}|#{GA}|#{PREV}"
136136
BLOCK_MACRO_RX = /^\s*(#{MACROS})\[(.*)\]\s*$/
137137
INLINE_MACRO_RX = /(#{MACROS})\[(.*)\]/
138-
# BETA_BLOCK_MACRO_RX = /^\s*(#{BETA_MACROS})\[(.*)\]\s*$/
139-
# BETA_INLINE_MACRO_RX = /(#{BETA_MACROS})\[(.*)\]/
140-
# COMING_BLOCK_MACRO_RX = /^\s*(#{COMING_MACROS})\[(.*)\]\s*$/
141-
# COMING_INLINE_MACRO_RX = /(#{COMING_MACROS})\[(.*)\]/
142-
# DEP_BLOCK_MACRO_RX = /^\s*(#{DEP_MACROS})\[(.*)\]\s*$/
143-
# DEP_INLINE_MACRO_RX = /(#{DEP_MACROS})\[(.*)\]/
144-
# DEV_BLOCK_MACRO_RX = /^\s*(#{DEV_MACROS})\[(.*)\]\s*$/
145-
# DEV_INLINE_MACRO_RX = /(#{DEV_MACROS})\[(.*)\]/
146-
# DISC_BLOCK_MACRO_RX = /^\s*(#{DISC_MACROS})\[(.*)\]\s*$/
147-
# DISC_INLINE_MACRO_RX = /(#{DISC_MACROS})\[(.*)\]/
148-
# GA_BLOCK_MACRO_RX = /^\s*(#{GA_MACROS})\[(.*)\]\s*$/
149-
# GA_INLINE_MACRO_RX = /(#{GA_MACROS})\[(.*)\]/
150-
# PREV_BLOCK_MACRO_RX = /^\s*(#{PREV_MACROS})\[(.*)\]\s*$/
151-
# PREV_INLINE_MACRO_RX = /(#{PREV_MACROS})\[(.*)\]/
152138

153139
def process(_document, reader)
154140
reader.extend ReaderExtension
@@ -236,23 +222,9 @@ def postprocess(line)
236222
# First convert the "block" version of these macros. We convert them
237223
# to block macros because they are alone on a line
238224
line.gsub!(BLOCK_MACRO_RX, '\1::[\2]')
239-
# line.gsub!(BETA_BLOCK_MACRO_RX, '\1::[\2]')
240-
# line.gsub!(COMING_BLOCK_MACRO_RX, '\1::[\2]')
241-
# line.gsub!(DEP_BLOCK_MACRO_RX, '\1::[\2]')
242-
# line.gsub!(DEV_BLOCK_MACRO_RX, '\1::[\2]')
243-
# line.gsub!(DISC_BLOCK_MACRO_RX, '\1::[\2]')
244-
# line.gsub!(GA_BLOCK_MACRO_RX, '\1::[\2]')
245-
# line.gsub!(PREV_BLOCK_MACRO_RX, '\1::[\2]')
246225
# Then convert the "inline" version of these macros. We convert them
247226
# to inline macros because they are *not* at the start of the line....
248227
line.gsub!(INLINE_MACRO_RX, '\1:[\2]')
249-
# line.gsub!(BETA_INLINE_MACRO_RX, '\1:[\2]')
250-
# line.gsub!(COMING_INLINE_MACRO_RX, '\1:[\2]')
251-
# line.gsub!(DEP_INLINE_MACRO_RX, '\1:[\2]')
252-
# line.gsub!(DEV_INLINE_MACRO_RX, '\1:[\2]')
253-
# line.gsub!(DISC_INLINE_MACRO_RX, '\1:[\2]')
254-
# line.gsub!(GA_INLINE_MACRO_RX, '\1:[\2]')
255-
# line.gsub!(PREV_INLINE_MACRO_RX, '\1:[\2]')
256228
# Transform Elastic's traditional comment based marking for
257229
# AUTOSENSE/KIBANA/CONSOLE snippets into a marker that we can pick
258230
# up during tree processing to turn the snippet into a marked up

resources/asciidoctor/spec/elastic_compat_preprocessor_spec.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,6 @@
227227
let(:name) { 'deprecated_ess' }
228228
let(:inline_admon_class) { 'ESS:deprecated' }
229229
end
230-
# context 'for discontinued in stack' do
231-
# include_context 'change admonition'
232-
# let(:name) { 'discontinued_stack' }
233-
# let(:block_admon_class) { 'warning' }
234-
# let(:inline_admon_class) { 'change' }
235-
# end
236230
end
237231

238232
context 'when the document contains include-tagged::' do

0 commit comments

Comments
 (0)