comparison data/model/IntervalModel.h @ 970:bfe724787abf

Remove redundant code (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 11:07:12 +0100
parents 59e7fe1b1003
children cc27f35aa75c
comparison
equal deleted inserted replaced
969:a8aed8a85e09 970:bfe724787abf
104 104
105 PointType point(*i); 105 PointType point(*i);
106 command->deletePoint(point); 106 command->deletePoint(point);
107 107
108 switch (column) { 108 switch (column) {
109 case 0: case 1: point.frame = value.toInt(); break; 109 // column cannot be 0 or 1, those cases were handled above
110 case 2: point.value = value.toDouble(); break; 110 case 2: point.value = value.toDouble(); break;
111 case 3: point.duration = value.toInt(); break; 111 case 3: point.duration = value.toInt(); break;
112 } 112 }
113 113
114 command->addPoint(point); 114 command->addPoint(point);