Removed explicit copy constructor which had no real use
This commit is contained in:
parent
63f8665bf6
commit
ef8d944dd3
@ -109,15 +109,6 @@ DateTime::DateTime (uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uin
|
|||||||
ss = sec;
|
ss = sec;
|
||||||
}
|
}
|
||||||
|
|
||||||
DateTime::DateTime (const DateTime& copy):
|
|
||||||
yOff(copy.yOff),
|
|
||||||
m(copy.m),
|
|
||||||
d(copy.d),
|
|
||||||
hh(copy.hh),
|
|
||||||
mm(copy.mm),
|
|
||||||
ss(copy.ss)
|
|
||||||
{}
|
|
||||||
|
|
||||||
static uint8_t conv2d(const char* p) {
|
static uint8_t conv2d(const char* p) {
|
||||||
uint8_t v = 0;
|
uint8_t v = 0;
|
||||||
if ('0' <= *p && *p <= '9')
|
if ('0' <= *p && *p <= '9')
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
// Added a real begin verification for the ds3231 01/05/2019 Th3maz1ng
|
// Added a real begin verification for the ds3231 01/05/2019 Th3maz1ng
|
||||||
// Added a real begin verification for the ds1307 27/04/2020 Th3maz1ng
|
// Added a real begin verification for the ds1307 27/04/2020 Th3maz1ng
|
||||||
// Adding DS3231 internal temperature sensor reading
|
// Adding DS3231 internal temperature sensor reading
|
||||||
|
// Removed unnecessary copy constructor raising a warning with gcc 10.3
|
||||||
|
|
||||||
#ifndef _RTCLIB_H_
|
#ifndef _RTCLIB_H_
|
||||||
#define _RTCLIB_H_
|
#define _RTCLIB_H_
|
||||||
@ -36,7 +37,6 @@ public:
|
|||||||
DateTime (uint32_t t = 0);
|
DateTime (uint32_t t = 0);
|
||||||
DateTime (uint16_t year, uint8_t month, uint8_t day,
|
DateTime (uint16_t year, uint8_t month, uint8_t day,
|
||||||
uint8_t hour = 0, uint8_t min = 0, uint8_t sec = 0);
|
uint8_t hour = 0, uint8_t min = 0, uint8_t sec = 0);
|
||||||
DateTime (const DateTime& copy);
|
|
||||||
DateTime (const char* date, const char* time);
|
DateTime (const char* date, const char* time);
|
||||||
DateTime (const __FlashStringHelper* date, const __FlashStringHelper* time);
|
DateTime (const __FlashStringHelper* date, const __FlashStringHelper* time);
|
||||||
uint16_t year() const { return 2000 + yOff; }
|
uint16_t year() const { return 2000 + yOff; }
|
||||||
|
Loading…
Reference in New Issue
Block a user