From 830ef8134160fdcbb96289af4a136b70d994f6d6 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Thu, 14 May 2020 12:47:59 -0700 Subject: src: remove superfluous inline keywords PR-URL: https://github.com/nodejs/node/pull/33291 Reviewed-By: Anna Henningsen Reviewed-By: David Carlier --- src/allocated_buffer-inl.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/allocated_buffer-inl.h') diff --git a/src/allocated_buffer-inl.h b/src/allocated_buffer-inl.h index e10aa08e7f..2dee6f09a3 100644 --- a/src/allocated_buffer-inl.h +++ b/src/allocated_buffer-inl.h @@ -65,7 +65,7 @@ void AllocatedBuffer::Resize(size_t len) { env_->isolate(), std::move(backing_store_), len); } -inline uv_buf_t AllocatedBuffer::release() { +uv_buf_t AllocatedBuffer::release() { if (data() == nullptr) return uv_buf_init(nullptr, 0); CHECK_NOT_NULL(env_); @@ -75,33 +75,33 @@ inline uv_buf_t AllocatedBuffer::release() { return ret; } -inline char* AllocatedBuffer::data() { +char* AllocatedBuffer::data() { if (!backing_store_) return nullptr; return static_cast(backing_store_->Data()); } -inline const char* AllocatedBuffer::data() const { +const char* AllocatedBuffer::data() const { if (!backing_store_) return nullptr; return static_cast(backing_store_->Data()); } -inline size_t AllocatedBuffer::size() const { +size_t AllocatedBuffer::size() const { if (!backing_store_) return 0; return backing_store_->ByteLength(); } -inline void AllocatedBuffer::clear() { +void AllocatedBuffer::clear() { backing_store_.reset(); } -inline v8::MaybeLocal AllocatedBuffer::ToBuffer() { +v8::MaybeLocal AllocatedBuffer::ToBuffer() { v8::Local ab = ToArrayBuffer(); return Buffer::New(env_, ab, 0, ab->ByteLength()) .FromMaybe(v8::Local()); } -inline v8::Local AllocatedBuffer::ToArrayBuffer() { +v8::Local AllocatedBuffer::ToArrayBuffer() { return v8::ArrayBuffer::New(env_->isolate(), std::move(backing_store_)); } -- cgit v1.2.1