summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorTimo Eskola <timo@tolleri.net>2018-09-06 22:22:01 +0300
committerTimo Eskola <timo@tolleri.net>2018-09-06 22:22:01 +0300
commitb137e467c469853d6ddd6fa5200663e113cba9ac (patch)
tree0cfac7adda0015bc80bc2b733c4af18800fdada6 /menu.c
parent3f0ea3e26158e52cb8e6306cca6301bd18e3f687 (diff)
downloadvdr-plugin-duplicates-b137e467c469853d6ddd6fa5200663e113cba9ac.tar.gz
vdr-plugin-duplicates-b137e467c469853d6ddd6fa5200663e113cba9ac.tar.bz2
Removed some superfluous code.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/menu.c b/menu.c
index ca3ad71..e26ee05 100644
--- a/menu.c
+++ b/menu.c
@@ -176,16 +176,12 @@ void cMenuDuplicates::Set(bool Refresh) {
CurrentRecording = cReplayControl::LastReplayed();
Clear();
for (cDuplicateRecording *Duplicates = DuplicateRecordings.First(); Duplicates; Duplicates = DuplicateRecordings.Next(Duplicates)) {
- if (Duplicates) {
- Add(SeparatorItem(Duplicates->Text().c_str()));
- for (cDuplicateRecording *Duplicate = Duplicates->Duplicates()->First(); Duplicate; Duplicate = Duplicates->Duplicates()->Next(Duplicate)) {
- if (Duplicate) {
- cMenuDuplicateItem *Item = new cMenuDuplicateItem(Duplicate);
- Add(Item);
- if (CurrentRecording && strcmp(CurrentRecording, Item->FileName()) == 0)
- SetCurrent(Item);
- }
- }
+ Add(SeparatorItem(Duplicates->Text().c_str()));
+ for (cDuplicateRecording *Duplicate = Duplicates->Duplicates()->First(); Duplicate; Duplicate = Duplicates->Duplicates()->Next(Duplicate)) {
+ cMenuDuplicateItem *Item = new cMenuDuplicateItem(Duplicate);
+ Add(Item);
+ if (CurrentRecording && strcmp(CurrentRecording, Item->FileName()) == 0)
+ SetCurrent(Item);
}
}
duplicateRecordingsStateKey.Remove();