remove deprecated SpanRange structure

Has been deprecated many versions ago.
This commit is contained in:
Gregg 2024-05-04 08:07:03 -05:00
parent 80a8935828
commit 214286f4de
2 changed files with 0 additions and 25 deletions

View File

@ -2353,21 +2353,6 @@ SpanCharacteristic *SpanCharacteristic::setValidValues(int n, ...){
return(this); return(this);
} }
///////////////////////////////
// SpanRange //
///////////////////////////////
SpanRange::SpanRange(int min, int max, int step){
if(homeSpan.Accessories.empty() || homeSpan.Accessories.back()->Services.empty() || homeSpan.Accessories.back()->Services.back()->Characteristics.empty() ){
LOG0("\nFATAL ERROR! Can't create new SpanRange(%d,%d,%d) without a defined Characteristic ***\n",min,max,step);
LOG0("\n=== PROGRAM HALTED ===");
while(1);
} else {
homeSpan.Accessories.back()->Services.back()->Characteristics.back()->setRange(min,max,step);
}
}
/////////////////////////////// ///////////////////////////////
// SpanButton // // SpanButton //
/////////////////////////////// ///////////////////////////////

View File

@ -109,7 +109,6 @@ struct Span;
struct SpanAccessory; struct SpanAccessory;
struct SpanService; struct SpanService;
struct SpanCharacteristic; struct SpanCharacteristic;
struct SpanRange;
struct SpanBuf; struct SpanBuf;
struct SpanButton; struct SpanButton;
struct SpanUserCommand; struct SpanUserCommand;
@ -230,7 +229,6 @@ class Span{
friend class SpanCharacteristic; friend class SpanCharacteristic;
friend class SpanUserCommand; friend class SpanUserCommand;
friend class SpanButton; friend class SpanButton;
friend class SpanRange;
friend class SpanWebLog; friend class SpanWebLog;
friend class SpanOTA; friend class SpanOTA;
friend class Network; friend class Network;
@ -441,7 +439,6 @@ class SpanAccessory{
friend class SpanService; friend class SpanService;
friend class SpanCharacteristic; friend class SpanCharacteristic;
friend class SpanButton; friend class SpanButton;
friend class SpanRange;
uint32_t aid=0; // Accessory Instance ID (HAP Table 6-1) uint32_t aid=0; // Accessory Instance ID (HAP Table 6-1)
uint32_t iidCount=0; // running count of iid to use for Services and Characteristics associated with this Accessory uint32_t iidCount=0; // running count of iid to use for Services and Characteristics associated with this Accessory
@ -466,7 +463,6 @@ class SpanService{
friend class Span; friend class Span;
friend class SpanAccessory; friend class SpanAccessory;
friend class SpanCharacteristic; friend class SpanCharacteristic;
friend class SpanRange;
uint32_t iid=0; // Instance ID (HAP Table 6-2) uint32_t iid=0; // Instance ID (HAP Table 6-2)
const char *type; // Service Type const char *type; // Service Type
@ -743,12 +739,6 @@ class SpanCharacteristic{
/////////////////////////////// ///////////////////////////////
struct [[deprecated("Please use Characteristic::setRange() method instead.")]] SpanRange{
SpanRange(int min, int max, int step);
};
///////////////////////////////
class SpanButton : public PushButton { class SpanButton : public PushButton {
friend class Span; friend class Span;