| Index: mojo/public/c/bindings/lib/buffer.c
|
| diff --git a/mojo/public/c/bindings/lib/buffer.c b/mojo/public/c/bindings/lib/buffer.c
|
| deleted file mode 100644
|
| index e8d559671d83e2c3b41ab773ba235c44552a1178..0000000000000000000000000000000000000000
|
| --- a/mojo/public/c/bindings/lib/buffer.c
|
| +++ /dev/null
|
| @@ -1,22 +0,0 @@
|
| -// Copyright 2016 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "mojo/public/c/bindings/buffer.h"
|
| -
|
| -#include <assert.h>
|
| -#include <stddef.h>
|
| -
|
| -#include "mojo/public/c/bindings/lib/util.h"
|
| -
|
| -void* MojomBuffer_Allocate(struct MojomBuffer* buf, uint32_t num_bytes) {
|
| - assert(buf);
|
| -
|
| - const uint32_t bytes_used = buf->num_bytes_used;
|
| - const uint64_t size = MOJOM_INTERNAL_ROUND_TO_8((uint64_t)num_bytes);
|
| - if (bytes_used + size > buf->buf_size)
|
| - return NULL;
|
| -
|
| - buf->num_bytes_used += size;
|
| - return buf->buf + bytes_used;
|
| -}
|
|
|