Skip to content

Commit 2e6b252

Browse files
committed
Removed the unused curvedLineGranularity property from CPTScatterPlot. Fixed issue core-plot#270.
1 parent e96157a commit 2e6b252

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

‎framework/Source/CPTScatterPlot.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ typedef NS_ENUM (NSInteger, CPTScatterPlotHistogramOption) {
261261
@property (nonatomic, readwrite, copy, nullable) CPTPlotSymbol *plotSymbol;
262262
@property (nonatomic, readwrite, copy, nullable) CPTFill *areaFill;
263263
@property (nonatomic, readwrite, copy, nullable) CPTFill *areaFill2;
264-
@property (nonatomic, readwrite) NSUInteger curvedLineGranularity;
265264
/// @}
266265

267266
/// @name Data Line

‎framework/Source/CPTScatterPlot.m‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ @implementation CPTScatterPlot
121121
**/
122122
@synthesize areaFill2;
123123

124-
/** @property NSUInteger curvedLineGranularity
125-
* @brief The number of smoothed points to interpolate between each view point when drawing a curved line with @ref interpolation of #CPTScatterPlotInterpolationCatmullRom.
126-
**/
127-
@synthesize curvedLineGranularity;
128-
129124
/** @property nullable NSNumber *areaBaseValue
130125
* @brief The Y coordinate of the straight boundary of the area fill.
131126
* If not a number, the area is not filled.
@@ -224,7 +219,6 @@ +(void)initialize
224219
* - @ref plotSymbol = @nil
225220
* - @ref areaFill = @nil
226221
* - @ref areaFill2 = @nil
227-
* - @ref curvedLineGranularity = @num{20}
228222
* - @ref areaBaseValue = @NAN
229223
* - @ref areaBaseValue2 = @NAN
230224
* - @ref plotSymbolMarginForHitDetection = @num{0.0}
@@ -246,7 +240,6 @@ -(nonnull instancetype)initWithFrame:(CGRect)newFrame
246240
plotSymbol = nil;
247241
areaFill = nil;
248242
areaFill2 = nil;
249-
curvedLineGranularity = 20;
250243
areaBaseValue = @(NAN);
251244
areaBaseValue2 = @(NAN);
252245
plotSymbolMarginForHitDetection = CPTFloat(0.0);
@@ -276,7 +269,6 @@ -(nonnull instancetype)initWithLayer:(nonnull id)layer
276269
plotSymbol = theLayer->plotSymbol;
277270
areaFill = theLayer->areaFill;
278271
areaFill2 = theLayer->areaFill2;
279-
curvedLineGranularity = theLayer->curvedLineGranularity;
280272
areaBaseValue = theLayer->areaBaseValue;
281273
areaBaseValue2 = theLayer->areaBaseValue2;
282274
plotSymbolMarginForHitDetection = theLayer->plotSymbolMarginForHitDetection;
@@ -312,7 +304,6 @@ -(void)encodeWithCoder:(nonnull NSCoder *)coder
312304
[coder encodeObject:self.plotSymbol forKey:@"CPTScatterPlot.plotSymbol"];
313305
[coder encodeObject:self.areaFill forKey:@"CPTScatterPlot.areaFill"];
314306
[coder encodeObject:self.areaFill2 forKey:@"CPTScatterPlot.areaFill2"];
315-
[coder encodeInteger:(NSInteger)self.curvedLineGranularity forKey:@"CPTScatterPlot.curvedLineGranularity"];
316307
[coder encodeObject:self.mutableAreaFillBands forKey:@"CPTScatterPlot.mutableAreaFillBands"];
317308
[coder encodeObject:self.areaBaseValue forKey:@"CPTScatterPlot.areaBaseValue"];
318309
[coder encodeObject:self.areaBaseValue2 forKey:@"CPTScatterPlot.areaBaseValue2"];
@@ -340,9 +331,8 @@ -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder
340331
forKey:@"CPTScatterPlot.areaFill"] copy];
341332
areaFill2 = [[coder decodeObjectOfClass:[CPTFill class]
342333
forKey:@"CPTScatterPlot.areaFill2"] copy];
343-
curvedLineGranularity = (NSUInteger)[coder decodeIntegerForKey:@"CPTScatterPlot.curvedLineGranularity"];
344-
mutableAreaFillBands = [[coder decodeObjectOfClasses:[NSSet setWithArray:@[[NSArray class], [CPTLimitBand class]]]
345-
forKey:@"CPTScatterPlot.mutableAreaFillBands"] mutableCopy];
334+
mutableAreaFillBands = [[coder decodeObjectOfClasses:[NSSet setWithArray:@[[NSArray class], [CPTLimitBand class]]]
335+
forKey:@"CPTScatterPlot.mutableAreaFillBands"] mutableCopy];
346336
areaBaseValue = [coder decodeObjectOfClass:[NSNumber class]
347337
forKey:@"CPTScatterPlot.areaBaseValue"];
348338
areaBaseValue2 = [coder decodeObjectOfClass:[NSNumber class]

0 commit comments

Comments
 (0)