From 84e66497247e559fd49908d4f3629a03a3dbd2e2 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 4 Jan 2023 20:42:45 -0800 Subject: [PATCH] Cleanup old usages of languageCutoffNotMet --- frontend/src/Activity/History/HistoryRow.js | 7 +------ frontend/src/Episode/History/EpisodeHistoryRow.js | 7 +------ frontend/src/Episode/Summary/EpisodeFileRow.js | 7 +------ frontend/src/Episode/Summary/EpisodeSummary.js | 3 --- frontend/src/Episode/Summary/EpisodeSummaryConnector.js | 2 -- frontend/src/Series/History/SeriesHistoryRow.js | 7 +------ frontend/src/Store/Actions/episodeFileActions.js | 1 - 7 files changed, 4 insertions(+), 30 deletions(-) diff --git a/frontend/src/Activity/History/HistoryRow.js b/frontend/src/Activity/History/HistoryRow.js index 0c566b4aa..4fd2a3b30 100644 --- a/frontend/src/Activity/History/HistoryRow.js +++ b/frontend/src/Activity/History/HistoryRow.js @@ -60,7 +60,6 @@ class HistoryRow extends Component { series, episode, languages, - languageCutoffNotMet, quality, customFormats, qualityCutoffNotMet, @@ -147,10 +146,7 @@ class HistoryRow extends Component { if (name === 'languages') { return ( - + ); } @@ -279,7 +275,6 @@ HistoryRow.propTypes = { series: PropTypes.object.isRequired, episode: PropTypes.object, languages: PropTypes.arrayOf(PropTypes.object).isRequired, - languageCutoffNotMet: PropTypes.bool.isRequired, quality: PropTypes.object.isRequired, customFormats: PropTypes.arrayOf(PropTypes.object), qualityCutoffNotMet: PropTypes.bool.isRequired, diff --git a/frontend/src/Episode/History/EpisodeHistoryRow.js b/frontend/src/Episode/History/EpisodeHistoryRow.js index 9905fd953..373a1bd67 100644 --- a/frontend/src/Episode/History/EpisodeHistoryRow.js +++ b/frontend/src/Episode/History/EpisodeHistoryRow.js @@ -66,7 +66,6 @@ class EpisodeHistoryRow extends Component { eventType, sourceTitle, languages, - languageCutoffNotMet, quality, qualityCutoffNotMet, customFormats, @@ -90,10 +89,7 @@ class EpisodeHistoryRow extends Component { - + @@ -166,7 +162,6 @@ EpisodeHistoryRow.propTypes = { eventType: PropTypes.string.isRequired, sourceTitle: PropTypes.string.isRequired, languages: PropTypes.arrayOf(PropTypes.object).isRequired, - languageCutoffNotMet: PropTypes.bool.isRequired, quality: PropTypes.object.isRequired, qualityCutoffNotMet: PropTypes.bool.isRequired, customFormats: PropTypes.arrayOf(PropTypes.object), diff --git a/frontend/src/Episode/Summary/EpisodeFileRow.js b/frontend/src/Episode/Summary/EpisodeFileRow.js index 5cb654f15..0fb44dbad 100644 --- a/frontend/src/Episode/Summary/EpisodeFileRow.js +++ b/frontend/src/Episode/Summary/EpisodeFileRow.js @@ -54,7 +54,6 @@ class EpisodeFileRow extends Component { languages, quality, customFormats, - languageCutoffNotMet, qualityCutoffNotMet, mediaInfo, columns @@ -95,10 +94,7 @@ class EpisodeFileRow extends Component { key={name} className={styles.languages} > - + ); } @@ -183,7 +179,6 @@ EpisodeFileRow.propTypes = { path: PropTypes.string.isRequired, size: PropTypes.number.isRequired, languages: PropTypes.arrayOf(PropTypes.object).isRequired, - languageCutoffNotMet: PropTypes.bool.isRequired, quality: PropTypes.object.isRequired, qualityCutoffNotMet: PropTypes.bool.isRequired, customFormats: PropTypes.arrayOf(PropTypes.object), diff --git a/frontend/src/Episode/Summary/EpisodeSummary.js b/frontend/src/Episode/Summary/EpisodeSummary.js index 89ed3a043..8bf97dc18 100644 --- a/frontend/src/Episode/Summary/EpisodeSummary.js +++ b/frontend/src/Episode/Summary/EpisodeSummary.js @@ -93,7 +93,6 @@ class EpisodeSummary extends Component { languages, quality, customFormats, - languageCutoffNotMet, qualityCutoffNotMet, onDeleteEpisodeFile } = this.props; @@ -140,7 +139,6 @@ class EpisodeSummary extends Component { path={path} size={size} languages={languages} - languageCutoffNotMet={languageCutoffNotMet} quality={quality} qualityCutoffNotMet={qualityCutoffNotMet} customFormats={customFormats} @@ -177,7 +175,6 @@ EpisodeSummary.propTypes = { path: PropTypes.string, size: PropTypes.number, languages: PropTypes.arrayOf(PropTypes.object), - languageCutoffNotMet: PropTypes.bool, quality: PropTypes.object, qualityCutoffNotMet: PropTypes.bool, customFormats: PropTypes.arrayOf(PropTypes.object), diff --git a/frontend/src/Episode/Summary/EpisodeSummaryConnector.js b/frontend/src/Episode/Summary/EpisodeSummaryConnector.js index 011b0894d..530138944 100644 --- a/frontend/src/Episode/Summary/EpisodeSummaryConnector.js +++ b/frontend/src/Episode/Summary/EpisodeSummaryConnector.js @@ -29,7 +29,6 @@ function createMapStateToProps() { path, size, languages, - languageCutoffNotMet, quality, qualityCutoffNotMet, customFormats @@ -44,7 +43,6 @@ function createMapStateToProps() { path, size, languages, - languageCutoffNotMet, quality, qualityCutoffNotMet, customFormats diff --git a/frontend/src/Series/History/SeriesHistoryRow.js b/frontend/src/Series/History/SeriesHistoryRow.js index 25ad12d5c..af079182e 100644 --- a/frontend/src/Series/History/SeriesHistoryRow.js +++ b/frontend/src/Series/History/SeriesHistoryRow.js @@ -68,7 +68,6 @@ class SeriesHistoryRow extends Component { eventType, sourceTitle, languages, - languageCutoffNotMet, quality, qualityCutoffNotMet, customFormats, @@ -110,10 +109,7 @@ class SeriesHistoryRow extends Component { - + @@ -186,7 +182,6 @@ SeriesHistoryRow.propTypes = { eventType: PropTypes.string.isRequired, sourceTitle: PropTypes.string.isRequired, languages: PropTypes.object.isRequired, - languageCutoffNotMet: PropTypes.bool.isRequired, quality: PropTypes.object.isRequired, qualityCutoffNotMet: PropTypes.bool.isRequired, customFormats: PropTypes.arrayOf(PropTypes.object), diff --git a/frontend/src/Store/Actions/episodeFileActions.js b/frontend/src/Store/Actions/episodeFileActions.js index 7f0748967..0d2804135 100644 --- a/frontend/src/Store/Actions/episodeFileActions.js +++ b/frontend/src/Store/Actions/episodeFileActions.js @@ -161,7 +161,6 @@ export const actionHandlers = handleThunks({ const episodeFile = data.find((f) => f.id === id); props.qualityCutoffNotMet = episodeFile.qualityCutoffNotMet; - props.languageCutoffNotMet = episodeFile.languageCutoffNotMet; props.languages = file.languages; props.quality = file.quality; props.releaseGroup = file.releaseGroup;