mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 16:44:04 -05:00
Remove unused Extractor#extract_cashtags_with_indices
method (#30742)
This commit is contained in:
parent
d5f02adad7
commit
38c6825eda
@ -86,10 +86,6 @@ module Extractor
|
|||||||
possible_entries
|
possible_entries
|
||||||
end
|
end
|
||||||
|
|
||||||
def extract_cashtags_with_indices(_text)
|
|
||||||
[]
|
|
||||||
end
|
|
||||||
|
|
||||||
def extract_extra_uris_with_indices(text)
|
def extract_extra_uris_with_indices(text)
|
||||||
return [] unless text&.index(':')
|
return [] unless text&.index(':')
|
||||||
|
|
||||||
|
@ -69,10 +69,10 @@ describe Extractor do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'extract_cashtags_with_indices' do
|
describe 'extract_entities_with_indices' do
|
||||||
it 'returns []' do
|
it 'returns empty array when cashtag present' do
|
||||||
text = '$cashtag'
|
text = '$cashtag'
|
||||||
extracted = described_class.extract_cashtags_with_indices(text)
|
extracted = described_class.extract_entities_with_indices(text)
|
||||||
expect(extracted).to eq []
|
expect(extracted).to eq []
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user