1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Remove a check in room() for (_begin == _end). It's covered by the (_end >= _begin) case.

This commit is contained in:
Christopher Pascoe 2015-12-07 00:31:46 -08:00
parent 7133a6c1f9
commit d8417c2855

View File

@ -42,9 +42,6 @@ class cbuf {
if(_end >= _begin) {
return _size - (_end - _begin) - 1;
}
if(_begin == _end) {
return _size;
}
return _begin - _end - 1;
}