Remove unused `Extractor#extract_cashtags_with_indices` method (#30742)

pull/30750/head
Matt Jankowski 6 months ago committed by GitHub
parent d5f02adad7
commit 38c6825eda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -86,10 +86,6 @@ module Extractor
possible_entries
end
def extract_cashtags_with_indices(_text)
[]
end
def extract_extra_uris_with_indices(text)
return [] unless text&.index(':')

@ -69,10 +69,10 @@ describe Extractor do
end
end
describe 'extract_cashtags_with_indices' do
it 'returns []' do
describe 'extract_entities_with_indices' do
it 'returns empty array when cashtag present' do
text = '$cashtag'
extracted = described_class.extract_cashtags_with_indices(text)
extracted = described_class.extract_entities_with_indices(text)
expect(extracted).to eq []
end
end

Loading…
Cancel
Save