diff --git a/src/HomeSpan.cpp b/src/HomeSpan.cpp index 871ef55..67093a6 100644 --- a/src/HomeSpan.cpp +++ b/src/HomeSpan.cpp @@ -2353,21 +2353,6 @@ SpanCharacteristic *SpanCharacteristic::setValidValues(int n, ...){ 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 // /////////////////////////////// diff --git a/src/HomeSpan.h b/src/HomeSpan.h index 0ce7fdb..374bfdd 100644 --- a/src/HomeSpan.h +++ b/src/HomeSpan.h @@ -109,7 +109,6 @@ struct Span; struct SpanAccessory; struct SpanService; struct SpanCharacteristic; -struct SpanRange; struct SpanBuf; struct SpanButton; struct SpanUserCommand; @@ -230,7 +229,6 @@ class Span{ friend class SpanCharacteristic; friend class SpanUserCommand; friend class SpanButton; - friend class SpanRange; friend class SpanWebLog; friend class SpanOTA; friend class Network; @@ -441,7 +439,6 @@ class SpanAccessory{ friend class SpanService; friend class SpanCharacteristic; friend class SpanButton; - friend class SpanRange; 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 @@ -466,7 +463,6 @@ class SpanService{ friend class Span; friend class SpanAccessory; friend class SpanCharacteristic; - friend class SpanRange; uint32_t iid=0; // Instance ID (HAP Table 6-2) 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 { friend class Span;