Skip to content

Commit c28bfab

Browse files
committed
Removed unused flags from String (free 1 byte of SRAM)
1 parent 4c79bb8 commit c28bfab

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

avr/cores/arduino/WString.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ inline void String::init(void)
134134
buffer = NULL;
135135
capacity = 0;
136136
len = 0;
137-
flags = 0;
138137
}
139138

140139
void String::invalidate(void)

avr/cores/arduino/WString.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ class String
191191
char *buffer; // the actual char array
192192
unsigned int capacity; // the array length minus one (for the '\0')
193193
unsigned int len; // the String length (not counting the '\0')
194-
unsigned char flags; // unused, for future features
195194
protected:
196195
void init(void);
197196
void invalidate(void);

avr/cores/robot/WString.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ inline void String::init(void)
134134
buffer = NULL;
135135
capacity = 0;
136136
len = 0;
137-
flags = 0;
138137
}
139138

140139
void String::invalidate(void)

avr/cores/robot/WString.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class String
113113
String & operator += (const String &rhs) {concat(rhs); return (*this);}
114114
String & operator += (const char *cstr) {concat(cstr); return (*this);}
115115
String & operator += (char c) {concat(c); return (*this);}
116-
String & operator += (unsigned char num) {concat(num); return (*this);}
116+
String & operator += (unsigned char num) {concat(num); return (*this);}
117117
String & operator += (int num) {concat(num); return (*this);}
118118
String & operator += (unsigned int num) {concat(num); return (*this);}
119119
String & operator += (long num) {concat(num); return (*this);}
@@ -191,7 +191,6 @@ class String
191191
char *buffer; // the actual char array
192192
unsigned int capacity; // the array length minus one (for the '\0')
193193
unsigned int len; // the String length (not counting the '\0')
194-
unsigned char flags; // unused, for future features
195194
protected:
196195
void init(void);
197196
void invalidate(void);

0 commit comments

Comments
 (0)