mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
raw_istream and kin: a few cleanups.
anchor() doesn't seem to change compiler output in current compilers, so remove it. Use default where appropriate rather than empty bodies.
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
|
||||
using namespace nt;
|
||||
|
||||
void raw_istream::anchor() {}
|
||||
|
||||
bool raw_mem_istream::read(void* data, std::size_t len) {
|
||||
if (len > m_left) return false;
|
||||
std::memcpy(data, m_cur, len);
|
||||
|
||||
Reference in New Issue
Block a user