Skip to content

Commit

Permalink
HAL: remove deprecated tag
Browse files Browse the repository at this point in the history
- See #366
  • Loading branch information
RuffaloLavoisier committed Oct 18, 2024
1 parent 585ad2d commit 9bb1d31
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions include/osw_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ class OswHal {
// UTC Time
void setUTCTime(const time_t& epoch);
time_t getUTCTime();
[[deprecated("Use OswHal::getUTCTime instead.")]]
void getUTCTime(uint32_t* hour, uint32_t* minute, uint32_t* second);
void getUTCTime(OswTime& oswTime);

Expand All @@ -205,19 +204,14 @@ class OswHal {

// New time functions with offset
time_t getTime(time_t& offset);
[[deprecated("Use OswHal::getTime instead.")]]
void getTime(time_t& offset, uint32_t* hour, uint32_t* minute, uint32_t* second, bool* afterNoon = nullptr);
[[deprecated("Use OswHal::getDate instead.")]]
void getDate(time_t& offset, uint32_t* day, uint32_t* weekDay);
[[deprecated("Use OswHal::getDate instead.")]]
void getDate(time_t& offset, uint32_t* day, uint32_t* month, uint32_t* year);
[[deprecated("Use OswHal::getWeekDay instead.")]]
const char* getWeekday(time_t& offset, uint32_t* setWDay = nullptr);
void getTime(time_t& offset, OswTime& oswTime);
void getDate(time_t& offset, OswDate& oswDate);

// For backward compatibility: Local time functions (= primary timezone)
[[deprecated("Use OswHal::getLocalTime instead.")]]
inline void getLocalTime(uint32_t* hour, uint32_t* minute, uint32_t* second, bool* afterNoon = nullptr) {
this->getTime(this->timezoneOffsetPrimary, hour, minute, second, afterNoon);
}
Expand All @@ -227,15 +221,12 @@ class OswHal {
inline uint32_t getLocalTime() {
return this->getTime(this->timezoneOffsetPrimary);
}
[[deprecated("Use OswHal::getLocalDate instead.")]]
inline void getLocalDate(uint32_t* day, uint32_t* weekDay) {
this->getDate(this->timezoneOffsetPrimary, day, weekDay);
};
[[deprecated("Use OswHal::getLocalDate instead.")]]
inline void getLocalDate(uint32_t* day, uint32_t* month, uint32_t* year) {
this->getDate(this->timezoneOffsetPrimary, day, month, year);
};
[[deprecated("Use OswHal::getWeekDay instead.")]]
inline const char* getLocalWeekday(uint32_t* sWDay = nullptr) {
return this->getWeekday(this->timezoneOffsetPrimary, sWDay);
}
Expand All @@ -244,7 +235,6 @@ class OswHal {
};

// For backward compatibility: Dual time functions (= secondary timezone)
[[deprecated("Use OswHal::getDualTime instead.")]]
inline void getDualTime(uint32_t* hour, uint32_t* minute, uint32_t* second, bool* afterNoon = nullptr) {
this->getTime(this->timezoneOffsetSecondary, hour, minute, second, afterNoon);
}
Expand All @@ -254,15 +244,12 @@ class OswHal {
inline uint32_t getDualTime() {
return this->getTime(this->timezoneOffsetSecondary);
}
[[deprecated("Use OswHal::getDualDate instead.")]]
inline void getDualDate(uint32_t* day, uint32_t* weekDay) {
this->getDate(this->timezoneOffsetSecondary, day, weekDay);
};
[[deprecated("Use OswHal::getDualDate instead.")]]
inline void getDualDate(uint32_t* day, uint32_t* month, uint32_t* year) {
this->getDate(this->timezoneOffsetSecondary, day, month, year);
};
[[deprecated("Use OswHal::getWeekDay instead.")]]
inline const char* getDualWeekday(uint32_t* sWDay = nullptr) {
return this->getWeekday(this->timezoneOffsetSecondary, sWDay);
}
Expand Down

0 comments on commit 9bb1d31

Please sign in to comment.