Remove unused fetchMentions()
This commit is contained in:
parent
bfd530aaea
commit
d669c37f13
2 changed files with 0 additions and 12 deletions
|
@ -62,12 +62,6 @@ const fetchAllFollowing = ({username, credentials}) => {
|
||||||
.then((data) => data.json())
|
.then((data) => data.json())
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchMentions = ({username, sinceId = 0, credentials}) => {
|
|
||||||
let url = `${MENTIONS_URL}?since_id=${sinceId}&screen_name=${username}`
|
|
||||||
return fetch(url, { headers: authHeaders(credentials) })
|
|
||||||
.then((data) => data.json())
|
|
||||||
}
|
|
||||||
|
|
||||||
const fetchConversation = ({id, credentials}) => {
|
const fetchConversation = ({id, credentials}) => {
|
||||||
let url = `${CONVERSATION_URL}/${id}.json?count=100`
|
let url = `${CONVERSATION_URL}/${id}.json?count=100`
|
||||||
return fetch(url, { headers: authHeaders(credentials) })
|
return fetch(url, { headers: authHeaders(credentials) })
|
||||||
|
@ -193,7 +187,6 @@ const apiService = {
|
||||||
fetchTimeline,
|
fetchTimeline,
|
||||||
fetchConversation,
|
fetchConversation,
|
||||||
fetchStatus,
|
fetchStatus,
|
||||||
fetchMentions,
|
|
||||||
fetchFriends,
|
fetchFriends,
|
||||||
followUser,
|
followUser,
|
||||||
unfollowUser,
|
unfollowUser,
|
||||||
|
|
|
@ -10,10 +10,6 @@ const backendInteractorService = (credentials) => {
|
||||||
return apiService.fetchConversation({id, credentials})
|
return apiService.fetchConversation({id, credentials})
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchMentions = ({sinceId, username}) => {
|
|
||||||
return apiService.fetchMentions({sinceId, username, credentials})
|
|
||||||
}
|
|
||||||
|
|
||||||
const fetchFriends = () => {
|
const fetchFriends = () => {
|
||||||
return apiService.fetchFriends({credentials})
|
return apiService.fetchFriends({credentials})
|
||||||
}
|
}
|
||||||
|
@ -43,7 +39,6 @@ const backendInteractorService = (credentials) => {
|
||||||
const backendInteractorServiceInstance = {
|
const backendInteractorServiceInstance = {
|
||||||
fetchStatus,
|
fetchStatus,
|
||||||
fetchConversation,
|
fetchConversation,
|
||||||
fetchMentions,
|
|
||||||
fetchFriends,
|
fetchFriends,
|
||||||
followUser,
|
followUser,
|
||||||
unfollowUser,
|
unfollowUser,
|
||||||
|
|
Loading…
Reference in a new issue