From 20da97252d791e4359a6a36a86136b8934754c16 Mon Sep 17 00:00:00 2001 From: neatchee Date: Sun, 7 May 2023 16:24:43 -0700 Subject: [PATCH] Remove stale/missed references to makeCustomEmojiMap / EmojiMap --- app/javascript/mastodon/containers/status_container.jsx | 3 +-- app/javascript/mastodon/selectors/index.js | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/javascript/mastodon/containers/status_container.jsx b/app/javascript/mastodon/containers/status_container.jsx index 865d4fabac..c86dd6b7a6 100644 --- a/app/javascript/mastodon/containers/status_container.jsx +++ b/app/javascript/mastodon/containers/status_container.jsx @@ -1,7 +1,7 @@ import React from 'react'; import { connect } from 'react-redux'; import Status from '../components/status'; -import { makeGetStatus, makeGetPictureInPicture, makeCustomEmojiMap } from '../selectors'; +import { makeGetStatus, makeGetPictureInPicture } from '../selectors'; import { replyCompose, mentionCompose, @@ -71,7 +71,6 @@ const makeMapStateToProps = () => { status: getStatus(state, props), nextInReplyToId: props.nextId ? state.getIn(['statuses', props.nextId, 'in_reply_to_id']) : null, pictureInPicture: getPictureInPicture(state, props), - emojiMap: makeCustomEmojiMap(state), }); return mapStateToProps; diff --git a/app/javascript/mastodon/selectors/index.js b/app/javascript/mastodon/selectors/index.js index a3ecdd5191..58972bdf7f 100644 --- a/app/javascript/mastodon/selectors/index.js +++ b/app/javascript/mastodon/selectors/index.js @@ -135,11 +135,3 @@ export const getAccountHidden = createSelector([ ], (hidden, followingOrRequested, isSelf) => { return hidden && !(isSelf || followingOrRequested); }); - -export const makeCustomEmojiMap = createSelector( - [state => state.get('custom_emojis')], - items => items.reduce( - (map, emoji) => map.set(emoji.get('shortcode'), emoji), - ImmutableMap(), - ), -);