@@ -1248,12 +1248,7 @@ - (NSUInteger)unitTestNonnullDelegateCount
1248
1248
attributeID : (NSNumber *)attributeID
1249
1249
params : (MTRReadParams * _Nullable)params
1250
1250
{
1251
- #define MTRDeviceErrorStr " MTRDevice readAttributeWithEndpointID:clusterID:attributeID:params: must be handled by subclasses"
1252
- MTR_LOG_ERROR (MTRDeviceErrorStr);
1253
- #ifdef DEBUG
1254
- NSAssert (NO , @MTRDeviceErrorStr);
1255
- #endif // DEBUG
1256
- #undef MTRDeviceErrorStr
1251
+ MTR_ABSTRACT_METHOD ();
1257
1252
return nil ;
1258
1253
}
1259
1254
@@ -1264,22 +1259,12 @@ - (void)writeAttributeWithEndpointID:(NSNumber *)endpointID
1264
1259
expectedValueInterval : (NSNumber *)expectedValueInterval
1265
1260
timedWriteTimeout : (NSNumber * _Nullable)timeout
1266
1261
{
1267
- #define MTRDeviceErrorStr " MTRDevice writeAttributeWithEndpointID:clusterID:attributeID:value:expectedValueInterval:timedWriteTimeout: must be handled by subclasses"
1268
- MTR_LOG_ERROR (MTRDeviceErrorStr);
1269
- #ifdef DEBUG
1270
- NSAssert (NO , @MTRDeviceErrorStr);
1271
- #endif // DEBUG
1272
- #undef MTRDeviceErrorStr
1262
+ MTR_ABSTRACT_METHOD ();
1273
1263
}
1274
1264
1275
1265
- (NSArray <NSDictionary<NSString *, id> *> *)readAttributePaths : (NSArray <MTRAttributeRequestPath *> *)attributePaths
1276
1266
{
1277
- #define MTRDeviceErrorStr " MTRDevice readAttributePaths: must be handled by subclasses"
1278
- MTR_LOG_ERROR (MTRDeviceErrorStr);
1279
- #ifdef DEBUG
1280
- NSAssert (NO , @MTRDeviceErrorStr);
1281
- #endif // DEBUG
1282
- #undef MTRDeviceErrorStr
1267
+ MTR_ABSTRACT_METHOD ();
1283
1268
return [NSArray array ];
1284
1269
}
1285
1270
@@ -1362,12 +1347,7 @@ - (void)_invokeCommandWithEndpointID:(NSNumber *)endpointID
1362
1347
queue : (dispatch_queue_t )queue
1363
1348
completion : (MTRDeviceResponseHandler)completion
1364
1349
{
1365
- #define MTRDeviceErrorStr " MTRDevice _invokeCommandWithEndpointID: must be handled by subclasses"
1366
- MTR_LOG_ERROR (MTRDeviceErrorStr);
1367
- #ifdef DEBUG
1368
- NSAssert (NO , @MTRDeviceErrorStr);
1369
- #endif // DEBUG
1370
- #undef MTRDeviceErrorStr
1350
+ MTR_ABSTRACT_METHOD ();
1371
1351
}
1372
1352
1373
1353
- (void )_invokeKnownCommandWithEndpointID : (NSNumber *)endpointID
@@ -1476,12 +1456,7 @@ - (NSDictionary *)_dataValueWithoutDataVersion:(NSDictionary *)attributeValue
1476
1456
1477
1457
- (NSArray <NSDictionary<NSString *, id> *> *)getAllAttributesReport
1478
1458
{
1479
- #define MTRDeviceErrorStr " MTRDevice getAllAttributesReport must be handled by subclasses that support it"
1480
- MTR_LOG_ERROR (MTRDeviceErrorStr);
1481
- #ifdef DEBUG
1482
- NSAssert (NO , @MTRDeviceErrorStr);
1483
- #endif // DEBUG
1484
- #undef MTRDeviceErrorStr
1459
+ MTR_ABSTRACT_METHOD ();
1485
1460
return nil ;
1486
1461
}
1487
1462
0 commit comments