File tree 7 files changed +2
-7
lines changed
7 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ ARDUINO 1.5.3 BETA
22
22
* avr: Added recipe for assembly files (C. A. Church)
23
23
* avr: Use analogPinToChannel if it's defined (Kristian Sloth Lauszus)
24
24
* avr: Optimized HardwareSerial buffer (Matthijs Kooijman)
25
+ * removed unused flags from String (free 1 byte of SRAM)
25
26
26
27
[libraries]
27
28
* sam: Added CAN library (still in early stage of development) (Palliser)
Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ inline void String::init(void)
134
134
buffer = NULL ;
135
135
capacity = 0 ;
136
136
len = 0 ;
137
- flags = 0 ;
138
137
}
139
138
140
139
void String::invalidate (void )
Original file line number Diff line number Diff line change @@ -191,7 +191,6 @@ class String
191
191
char *buffer; // the actual char array
192
192
unsigned int capacity; // the array length minus one (for the '\0')
193
193
unsigned int len; // the String length (not counting the '\0')
194
- unsigned char flags; // unused, for future features
195
194
protected:
196
195
void init (void );
197
196
void invalidate (void );
Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ inline void String::init(void)
134
134
buffer = NULL ;
135
135
capacity = 0 ;
136
136
len = 0 ;
137
- flags = 0 ;
138
137
}
139
138
140
139
void String::invalidate (void )
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ class String
113
113
String & operator += (const String &rhs) {concat (rhs); return (*this );}
114
114
String & operator += (const char *cstr) {concat (cstr); return (*this );}
115
115
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 );}
117
117
String & operator += (int num) {concat (num); return (*this );}
118
118
String & operator += (unsigned int num) {concat (num); return (*this );}
119
119
String & operator += (long num) {concat (num); return (*this );}
@@ -191,7 +191,6 @@ class String
191
191
char *buffer; // the actual char array
192
192
unsigned int capacity; // the array length minus one (for the '\0')
193
193
unsigned int len; // the String length (not counting the '\0')
194
- unsigned char flags; // unused, for future features
195
194
protected:
196
195
void init (void );
197
196
void invalidate (void );
Original file line number Diff line number Diff line change @@ -135,7 +135,6 @@ inline void String::init(void)
135
135
buffer = NULL ;
136
136
capacity = 0 ;
137
137
len = 0 ;
138
- flags = 0 ;
139
138
}
140
139
141
140
void String::invalidate (void )
Original file line number Diff line number Diff line change @@ -191,7 +191,6 @@ class String
191
191
char *buffer; // the actual char array
192
192
unsigned int capacity; // the array length minus one (for the '\0')
193
193
unsigned int len; // the String length (not counting the '\0')
194
- unsigned char flags; // unused, for future features
195
194
protected:
196
195
void init (void );
197
196
void invalidate (void );
You can’t perform that action at this time.
0 commit comments