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

main
Matt Jankowski 2024-06-18 08:16:16 -04:00 committed by GitHub
parent d5f02adad7
commit 38c6825eda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 7 deletions

View File

@ -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(':')

View File

@ -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