Commit 5abdec40 authored by Mike JS. Choi's avatar Mike JS. Choi Committed by Carola Nitz

VLCAudio: Remove redundant lines

parent 4a806265
......@@ -122,17 +122,13 @@ NSString *const VLCMediaPlayerVolumeChanged = @"VLCMediaPlayerVolumeChanged";
int tempVolume = [self volume] + VOLUME_STEP;
if (tempVolume > VOLUME_MAX)
tempVolume = VOLUME_MAX;
else if (tempVolume < VOLUME_MIN)
tempVolume = VOLUME_MIN;
[self setVolume: tempVolume];
}
- (void)volumeDown
{
int tempVolume = [self volume] - VOLUME_STEP;
if (tempVolume > VOLUME_MAX)
tempVolume = VOLUME_MAX;
else if (tempVolume < VOLUME_MIN)
if (tempVolume < VOLUME_MIN)
tempVolume = VOLUME_MIN;
[self setVolume: tempVolume];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment