@@ -22,7 +22,6 @@ namespace utils {
22
22
// struct state<Value> {
23
23
// bool empty () const;
24
24
// void clear();
25
- // unsigned short padding_length() const;
26
25
// }
27
26
//
28
27
// OutputIterator encode(InputIterator begin, InputIterator end,
@@ -85,12 +84,6 @@ struct state {
85
84
last_encoded_value = 0 ;
86
85
}
87
86
88
- unsigned short padding_length () const {
89
- // the fewer octets from the triplet processed, the more characters
90
- // needed as padding padding - that is why the complement here
91
- return triplet_index ? 3 - triplet_index : 0 ;
92
- }
93
-
94
87
protected:
95
88
// number of the octet in the incomplete quantum, which has been
96
89
// processed the last time; 0 means that the previous quantum was
@@ -414,12 +407,12 @@ std::basic_string<Char> encode(char const * value) {
414
407
return result;
415
408
}
416
409
417
- // the function overloads for string literals encode the input without
410
+ // The function overloads for string literals encode the input without
418
411
// the terminating zero, which is usually expected, because the trailing
419
412
// zero byte is not considered a part of the string value; the overloads
420
- // foran input range would wrap the string literal by Boost.Range and
421
- // encodethe full memory occupated by the string literal - including the
422
- // unwanted last zero byte
413
+ // for an input range would wrap the string literal by Boost.Range and
414
+ // encode the full memory occupated by the string literal - including the
415
+ // unwanted last zero byte.
423
416
424
417
} // namespace base64
425
418
0 commit comments