Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
vguen committed Mar 16, 2021
1 parent 92f37a2 commit d9e274a
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions app/state/video_debate/comments/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,11 @@ export const joinCommentsChannel = (videoId) => (dispatch) => {
)
}

export const joinCommentsTestChannel = (statementId) => (dispatch) => {
// Connect to channel
dispatch(setLoading(true))
dispatch(
fetchAll(
SocketApi.joinChannel(COMMENTS_CHANNEL, `comments:statement:${statementId}`, {
comment_removed: (c) => dispatch(remove(c)),
comment_added: (c) => dispatch(add(c)),
comment_score_diff: (p) => dispatch(scoreDiff(p)),
comment_updated: (c) => dispatch(update(c)),
comments_scores_updated: ({ comments }) => dispatch(updateScores(comments)),
})
)
)
}

export const leaveCommentsChannel = () => () => {
return SocketApi.leaveChannel(COMMENTS_CHANNEL)
}

export const postComment = (comment) => {
console.log("test")
return createEffect(SocketApi.push(COMMENTS_CHANNEL, 'new_comment', comment), {
catch: generateFSAError,
})
Expand Down

0 comments on commit d9e274a

Please sign in to comment.