[ios, macos] Removed unused code
This commit is contained in:
committed by
Minh Nguyễn
parent
abc825e19b
commit
98c6987af4
@@ -10,8 +10,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@property (nonatomic, copy) NS_DICTIONARY_OF(NSNumber *, id) *stops;
|
||||
|
||||
@property (nonatomic, copy, nullable) NSString *property;
|
||||
|
||||
@property (nonatomic, copy, nullable) NSNumber *base;
|
||||
|
||||
@end
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
- (mbgl::style::PropertyValue<std::array<float, 4>>)mbgl_paddingPropertyValue;
|
||||
- (mbgl::style::PropertyValue<std::vector<std::string> >)mbgl_stringArrayPropertyValue;
|
||||
- (mbgl::style::PropertyValue<std::vector<float> >)mbgl_numberArrayPropertyValue;
|
||||
- (mbgl::style::PropertyValue<uint8_t>)mbgl_enumPropertyValue;
|
||||
|
||||
// Convert mbgl types to darwin types
|
||||
- (id <MGLStyleAttributeValue>)mbgl_colorPropertyValueWith:(mbgl::style::PropertyValue<mbgl::Color>)color;
|
||||
|
||||
@@ -37,14 +37,6 @@
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (mbgl::style::PropertyValue<uint8_t>)mbgl_enumPropertyValue
|
||||
{
|
||||
NSAssert(strcmp(self.objCType, @encode(uint8_t)) == 0, @"Value does not represent a uint8_t");
|
||||
uint8_t value = 0;
|
||||
[self getValue:&value];
|
||||
return mbgl::style::PropertyValue<uint8_t> { value };
|
||||
}
|
||||
|
||||
- (mbgl::style::PropertyValue<std::array<float, 2>>)mbgl_offsetPropertyValue
|
||||
{
|
||||
return { self.mgl_offsetArrayValue };
|
||||
|
||||
@@ -9,9 +9,6 @@
|
||||
+ (instancetype)mgl_valueWithOffsetArray:(std::array<float, 2>)offsetArray;
|
||||
+ (instancetype)mgl_valueWithPaddingArray:(std::array<float, 4>)paddingArray;
|
||||
|
||||
- (mbgl::style::PropertyValue<uint8_t>)mbgl_enumPropertyValue;
|
||||
- (mbgl::style::PropertyValue<std::array<float, 2>>)mbgl_offsetPropertyValue;
|
||||
|
||||
- (std::array<float, 2>)mgl_offsetArrayValue;
|
||||
- (std::array<float, 4>)mgl_paddingArrayValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user