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:
Peter Johnson
2015-08-19 20:37:27 -07:00
parent a34143ae75
commit f0e31487f0
4 changed files with 4 additions and 10 deletions

View File

@@ -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);