Remove stale/missed references to makeCustomEmojiMap / EmojiMap

This commit is contained in:
neatchee 2023-05-07 16:24:43 -07:00 committed by Jeremy Kescher
parent 530167dff5
commit 81c3d63f01
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4
2 changed files with 1 additions and 10 deletions

View file

@ -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;

View file

@ -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(),
),
);