]> cat aescling's git repositories - mastodon.git/commitdiff
Remove dead code
authorThibaut Girka <thib@sitedethib.com>
Tue, 18 Dec 2018 18:06:58 +0000 (19:06 +0100)
committerThibG <thib@sitedethib.com>
Tue, 18 Dec 2018 20:39:35 +0000 (21:39 +0100)
app/javascript/flavours/glitch/features/public_timeline/index.js
app/javascript/flavours/glitch/features/ui/index.js

index ec552fb5d528d261db6b1adcf8ed176e0803acd3..477d3b8c78203fc5e0f6812a04818e8cf27f96e0 100644 (file)
@@ -103,13 +103,6 @@ export default class PublicTimeline extends React.PureComponent {
     return !(location.state && location.state.mastodonModalOpen)
   }
 
-  handleSettingChanged = (key, checked) => {
-    const { columnId } = this.props;
-    if (!columnId && key[0] === 'other' && key[1] === 'onlyMedia') {
-      this.context.router.history.replace(`/timelines/public${checked ? '/media' : ''}`);
-    }
-  }
-
   render () {
     const { intl, columnId, hasUnread, multiColumn, onlyMedia } = this.props;
     const pinned = !!columnId;
@@ -126,7 +119,7 @@ export default class PublicTimeline extends React.PureComponent {
           pinned={pinned}
           multiColumn={multiColumn}
         >
-          <ColumnSettingsContainer onChange={this.handleSettingChanged} columnId={columnId} />
+          <ColumnSettingsContainer columnId={columnId} />
         </ColumnHeader>
 
         <StatusListContainer
index 9892f3254bc68afce957296b588610a154953652..5d82f0dd7d2d114a9fb3d3e137d68d33ca237cc1 100644 (file)
@@ -467,9 +467,7 @@ export default class UI extends React.Component {
               <WrappedRoute path='/keyboard-shortcuts' component={KeyboardShortcuts} content={children} />
               <WrappedRoute path='/timelines/home' component={HomeTimeline} content={children} />
               <WrappedRoute path='/timelines/public' exact component={PublicTimeline} content={children} />
-              <WrappedRoute path='/timelines/public/media' component={PublicTimeline} content={children} componentParams={{ onlyMedia: true }} />
               <WrappedRoute path='/timelines/public/local' exact component={CommunityTimeline} content={children} />
-              <WrappedRoute path='/timelines/public/local/media' component={CommunityTimeline} content={children} componentParams={{ onlyMedia: true }} />
               <WrappedRoute path='/timelines/direct' component={DirectTimeline} content={children} />
               <WrappedRoute path='/timelines/tag/:id' component={HashtagTimeline} content={children} />
               <WrappedRoute path='/timelines/list/:id' component={ListTimeline} content={children} />