Status: clean up now unused media methods, etc

dnd
Alex Gleason 2022-05-31 12:32:59 -05:00
rodzic ba8379c753
commit 62d432a65d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 0 dodań i 27 usunięć

Wyświetl plik

@ -110,7 +110,6 @@ interface IStatusState {
showMedia: boolean, showMedia: boolean,
statusId?: string, statusId?: string,
emojiSelectorFocused: boolean, emojiSelectorFocused: boolean,
mediaWrapperWidth?: number,
} }
class Status extends ImmutablePureComponent<IStatus, IStatusState> { class Status extends ImmutablePureComponent<IStatus, IStatusState> {
@ -223,26 +222,6 @@ class Status extends ImmutablePureComponent<IStatus, IStatusState> {
this.props.onToggleHidden(this._properStatus()); this.props.onToggleHidden(this._properStatus());
}; };
renderLoadingMediaGallery(): JSX.Element {
return <div className='media_gallery' style={{ height: '285px' }} />;
}
renderLoadingVideoPlayer(): JSX.Element {
return <div className='media-spoiler-video' style={{ height: '285px' }} />;
}
renderLoadingAudioPlayer(): JSX.Element {
return <div className='media-spoiler-audio' style={{ height: '285px' }} />;
}
handleOpenVideo = (media: ImmutableMap<string, any>, startTime: number): void => {
this.props.onOpenVideo(media, startTime);
}
handleOpenAudio = (media: ImmutableMap<string, any>, startTime: number): void => {
this.props.onOpenAudio(media, startTime);
}
handleHotkeyOpenMedia = (e?: KeyboardEvent): void => { handleHotkeyOpenMedia = (e?: KeyboardEvent): void => {
const { onOpenMedia, onOpenVideo } = this.props; const { onOpenMedia, onOpenVideo } = this.props;
const status = this._properStatus(); const status = this._properStatus();
@ -336,12 +315,6 @@ class Status extends ImmutablePureComponent<IStatus, IStatusState> {
this.node = c; this.node = c;
} }
setRef = (c: HTMLDivElement): void => {
if (c) {
this.setState({ mediaWrapperWidth: c.offsetWidth });
}
}
render() { render() {
const poll = null; const poll = null;
let prepend, rebloggedByText, reblogElement, reblogElementMobile; let prepend, rebloggedByText, reblogElement, reblogElementMobile;