@@ -232,9 +232,6 @@ - (NSString*)getActionButtonTitle {
232232 subTitle = [NSString stringWithFormat: @" : %@ " , settingOptions[longPressRow.row][@" label" ]];
233233 break ;
234234 case cSlider:
235- if (itemControls[@" formatlabel" ] != nil ) {
236- stringFormat = [NSString stringWithFormat: @" : %@ " , itemControls[@" formatlabel" ]];
237- }
238235 subTitle = [NSString stringWithFormat: stringFormat, (int )storeSliderValue];
239236 break ;
240237 case cUnsupported:
@@ -526,9 +523,6 @@ - (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSI
526523 slider.minimumValue = [self .detailItem[@" minimum" ] intValue ];
527524 slider.maximumValue = [self .detailItem[@" maximum" ] intValue ];
528525 slider.value = [self .detailItem[@" value" ] intValue ];
529- if (itemControls[@" formatlabel" ] != nil ) {
530- stringFormat = [NSString stringWithFormat: @" %@ " , itemControls[@" formatlabel" ]];
531- }
532526 sliderLabel.text = [NSString stringWithFormat: stringFormat, [self .detailItem[@" value" ] intValue ]];
533527 break ;
534528
@@ -789,9 +783,6 @@ - (void)sliderAction:(id)sender {
789783 if ([[[slider superview ] viewWithTag: 102 ] isKindOfClass: [UILabel class ]]) {
790784 UILabel *sliderLabel = (UILabel*)[[slider superview ] viewWithTag: 102 ];
791785 NSString *stringFormat = @" %i " ;
792- if (itemControls[@" formatlabel" ] != nil ) {
793- stringFormat = [NSString stringWithFormat: @" %@ " , itemControls[@" formatlabel" ]];
794- }
795786 sliderLabel.text = [NSString stringWithFormat: stringFormat, (int )storeSliderValue];
796787 }
797788 }
0 commit comments