Skip to content

Commit 7725ff3

Browse files
jasnellcodebytere
authored andcommitted
src: remove superfluous inline keywords
PR-URL: #33291 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: David Carlier <[email protected]>
1 parent 27e9cb7 commit 7725ff3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/allocated_buffer-inl.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void AllocatedBuffer::Resize(size_t len) {
6565
env_->isolate(), std::move(backing_store_), len);
6666
}
6767

68-
inline uv_buf_t AllocatedBuffer::release() {
68+
uv_buf_t AllocatedBuffer::release() {
6969
if (data() == nullptr) return uv_buf_init(nullptr, 0);
7070

7171
CHECK_NOT_NULL(env_);
@@ -75,33 +75,33 @@ inline uv_buf_t AllocatedBuffer::release() {
7575
return ret;
7676
}
7777

78-
inline char* AllocatedBuffer::data() {
78+
char* AllocatedBuffer::data() {
7979
if (!backing_store_) return nullptr;
8080
return static_cast<char*>(backing_store_->Data());
8181
}
8282

83-
inline const char* AllocatedBuffer::data() const {
83+
const char* AllocatedBuffer::data() const {
8484
if (!backing_store_) return nullptr;
8585
return static_cast<char*>(backing_store_->Data());
8686
}
8787

8888

89-
inline size_t AllocatedBuffer::size() const {
89+
size_t AllocatedBuffer::size() const {
9090
if (!backing_store_) return 0;
9191
return backing_store_->ByteLength();
9292
}
9393

94-
inline void AllocatedBuffer::clear() {
94+
void AllocatedBuffer::clear() {
9595
backing_store_.reset();
9696
}
9797

98-
inline v8::MaybeLocal<v8::Object> AllocatedBuffer::ToBuffer() {
98+
v8::MaybeLocal<v8::Object> AllocatedBuffer::ToBuffer() {
9999
v8::Local<v8::ArrayBuffer> ab = ToArrayBuffer();
100100
return Buffer::New(env_, ab, 0, ab->ByteLength())
101101
.FromMaybe(v8::Local<v8::Uint8Array>());
102102
}
103103

104-
inline v8::Local<v8::ArrayBuffer> AllocatedBuffer::ToArrayBuffer() {
104+
v8::Local<v8::ArrayBuffer> AllocatedBuffer::ToArrayBuffer() {
105105
return v8::ArrayBuffer::New(env_->isolate(), std::move(backing_store_));
106106
}
107107

0 commit comments

Comments
 (0)