From 62d432a65da6dc6a4327e9cd4f7d3abb465938c7 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 31 May 2022 12:32:59 -0500 Subject: [PATCH] Status: clean up now unused media methods, etc --- app/soapbox/components/status.tsx | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/app/soapbox/components/status.tsx b/app/soapbox/components/status.tsx index 5a42fdea5..4d9b4eb59 100644 --- a/app/soapbox/components/status.tsx +++ b/app/soapbox/components/status.tsx @@ -110,7 +110,6 @@ interface IStatusState { showMedia: boolean, statusId?: string, emojiSelectorFocused: boolean, - mediaWrapperWidth?: number, } class Status extends ImmutablePureComponent { @@ -223,26 +222,6 @@ class Status extends ImmutablePureComponent { this.props.onToggleHidden(this._properStatus()); }; - renderLoadingMediaGallery(): JSX.Element { - return
; - } - - renderLoadingVideoPlayer(): JSX.Element { - return
; - } - - renderLoadingAudioPlayer(): JSX.Element { - return
; - } - - handleOpenVideo = (media: ImmutableMap, startTime: number): void => { - this.props.onOpenVideo(media, startTime); - } - - handleOpenAudio = (media: ImmutableMap, startTime: number): void => { - this.props.onOpenAudio(media, startTime); - } - handleHotkeyOpenMedia = (e?: KeyboardEvent): void => { const { onOpenMedia, onOpenVideo } = this.props; const status = this._properStatus(); @@ -336,12 +315,6 @@ class Status extends ImmutablePureComponent { this.node = c; } - setRef = (c: HTMLDivElement): void => { - if (c) { - this.setState({ mediaWrapperWidth: c.offsetWidth }); - } - } - render() { const poll = null; let prepend, rebloggedByText, reblogElement, reblogElementMobile;