Remove unused Extractor#extract_cashtags_with_indices
method (#30742)
This commit is contained in:
parent
d5f02adad7
commit
38c6825eda
2 changed files with 3 additions and 7 deletions
|
@ -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…
Reference in a new issue