Removed unused flags from String (free 1 byte of SRAM)

This commit is contained in:
Cristian Maglie 2013-08-20 15:15:47 +02:00
parent a8193ed933
commit b3348a6706
4 changed files with 1 additions and 5 deletions

View File

@ -134,7 +134,6 @@ inline void String::init(void)
buffer = NULL;
capacity = 0;
len = 0;
flags = 0;
}
void String::invalidate(void)

View File

@ -191,7 +191,6 @@ protected:
char *buffer; // the actual char array
unsigned int capacity; // the array length minus one (for the '\0')
unsigned int len; // the String length (not counting the '\0')
unsigned char flags; // unused, for future features
protected:
void init(void);
void invalidate(void);

View File

@ -134,7 +134,6 @@ inline void String::init(void)
buffer = NULL;
capacity = 0;
len = 0;
flags = 0;
}
void String::invalidate(void)

View File

@ -113,7 +113,7 @@ public:
String & operator += (const String &rhs) {concat(rhs); return (*this);}
String & operator += (const char *cstr) {concat(cstr); return (*this);}
String & operator += (char c) {concat(c); return (*this);}
String & operator += (unsigned char num) {concat(num); return (*this);}
String & operator += (unsigned char num) {concat(num); return (*this);}
String & operator += (int num) {concat(num); return (*this);}
String & operator += (unsigned int num) {concat(num); return (*this);}
String & operator += (long num) {concat(num); return (*this);}
@ -191,7 +191,6 @@ protected:
char *buffer; // the actual char array
unsigned int capacity; // the array length minus one (for the '\0')
unsigned int len; // the String length (not counting the '\0')
unsigned char flags; // unused, for future features
protected:
void init(void);
void invalidate(void);