From c86b6eedc2d8244a9b193682ae11343dd69a99e1 Mon Sep 17 00:00:00 2001 From: Matt Panaro Date: Mon, 23 Dec 2019 09:08:45 -0500 Subject: [PATCH] remove getSnapshotBeforeUpdate from status --- app/javascript/mastodon/components/status.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index 41b874532d5a00..2d28455f07e31a 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -108,14 +108,6 @@ class Status extends ImmutablePureComponent { this.didShowCard = !this.props.muted && !this.props.hidden && this.props.status && this.props.status.get('card'); } - getSnapshotBeforeUpdate () { - if (this.props.getScrollPosition) { - return this.props.getScrollPosition(); - } else { - return null; - } - } - static getDerivedStateFromProps(nextProps, prevState) { if (nextProps.status && nextProps.status.get('id') !== prevState.statusId) { return {