From 1d5137d5576e4b85f4bf3879e195fa5d12a9b494 Mon Sep 17 00:00:00 2001 From: Sophia Hadash Date: Sun, 26 Sep 2021 02:33:49 +0200 Subject: [PATCH] fix compiler warning. Remove unnecessary code. --- es-app/src/views/gamelist/DetailedGameListView.cpp | 2 -- es-app/src/views/gamelist/VideoGameListView.cpp | 2 -- es-app/src/views/gamelist/VideoGameListView.h | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/es-app/src/views/gamelist/DetailedGameListView.cpp b/es-app/src/views/gamelist/DetailedGameListView.cpp index fac4d92db..c6bb5b5aa 100644 --- a/es-app/src/views/gamelist/DetailedGameListView.cpp +++ b/es-app/src/views/gamelist/DetailedGameListView.cpp @@ -121,8 +121,6 @@ void DetailedGameListView::onThemeChanged(const std::shared_ptr& them POSITION | ThemeFlags::SIZE | Z_INDEX | ROTATION | VISIBLE); mImage.applyTheme(theme, getName(), "md_image", POSITION | ThemeFlags::SIZE | Z_INDEX | ROTATION | VISIBLE); - mBadges.applyTheme(theme, getName(), "md_badges", - POSITION | ThemeFlags::SIZE | Z_INDEX | DIRECTION | VISIBLE); mName.applyTheme(theme, getName(), "md_name", ALL); initMDLabels(); diff --git a/es-app/src/views/gamelist/VideoGameListView.cpp b/es-app/src/views/gamelist/VideoGameListView.cpp index bb260ae51..a6a187e0a 100644 --- a/es-app/src/views/gamelist/VideoGameListView.cpp +++ b/es-app/src/views/gamelist/VideoGameListView.cpp @@ -164,8 +164,6 @@ void VideoGameListView::onThemeChanged(const std::shared_ptr& theme) mVideo->applyTheme(theme, getName(), "md_video", POSITION | ThemeFlags::SIZE | ThemeFlags::DELAY | Z_INDEX | ROTATION | VISIBLE); - mBadges.applyTheme(theme, getName(), "md_badges", - POSITION | ThemeFlags::SIZE | Z_INDEX | DIRECTION | VISIBLE); mName.applyTheme(theme, getName(), "md_name", ALL); initMDLabels(); diff --git a/es-app/src/views/gamelist/VideoGameListView.h b/es-app/src/views/gamelist/VideoGameListView.h index 23d181389..3516d8477 100644 --- a/es-app/src/views/gamelist/VideoGameListView.h +++ b/es-app/src/views/gamelist/VideoGameListView.h @@ -51,13 +51,13 @@ private: TextComponent mLblLastPlayed; TextComponent mLblPlayCount; - BadgesComponent mBadges; RatingComponent mRating; DateTimeComponent mReleaseDate; TextComponent mDeveloper; TextComponent mPublisher; TextComponent mGenre; TextComponent mPlayers; + BadgesComponent mBadges; DateTimeComponent mLastPlayed; TextComponent mPlayCount; TextComponent mName;