Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: src/trusted/gio/gio_nacl_desc.c

Issue 594733005: Cleanup: Remove src/trusted/gio/, since it is unused (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/gio/gio_nacl_desc.h ('k') | src/trusted/gio/gio_nacl_desc_test.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/gio/gio_nacl_desc.c
diff --git a/src/trusted/gio/gio_nacl_desc.c b/src/trusted/gio/gio_nacl_desc.c
deleted file mode 100644
index 7c022ed3d344a6fd201ca90722910da409f0f0cb..0000000000000000000000000000000000000000
--- a/src/trusted/gio/gio_nacl_desc.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright (c) 2012 The Native Client 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 "native_client/src/include/portability.h"
-
-#include "native_client/src/shared/platform/nacl_check.h"
-#include "native_client/src/shared/platform/nacl_log.h"
-
-#include "native_client/src/trusted/gio/gio_nacl_desc.h"
-
-#include "native_client/src/trusted/desc/nacl_desc_base.h"
-
-const struct GioVtbl kNaClGioNaClDescVtbl;
-
-int NaClGioNaClDescCtor(struct NaClGioNaClDesc *self,
- struct NaClDesc *wrapped) {
- self->wrapped = NaClDescRef(wrapped);
- NACL_VTBL(Gio, self) = &kNaClGioNaClDescVtbl;
- return 1;
-}
-
-static ssize_t NaClGioNaClDescRead(struct Gio *vself,
- void *buf,
- size_t count) {
- struct NaClGioNaClDesc *self = (struct NaClGioNaClDesc *) vself;
-
- return (*NACL_VTBL(NaClDesc, self->wrapped)->
- Read)(self->wrapped, buf, count);
-}
-
-static ssize_t NaClGioNaClDescWrite(struct Gio *vself,
- void const *buf,
- size_t count) {
- struct NaClGioNaClDesc *self = (struct NaClGioNaClDesc *) vself;
-
- return (*NACL_VTBL(NaClDesc, self->wrapped)->
- Write)(self->wrapped, buf, count);
-}
-
-static off_t NaClGioNaClDescSeek(struct Gio *vself,
- off_t offset,
- int whence) {
- struct NaClGioNaClDesc *self = (struct NaClGioNaClDesc *) vself;
-
- return (off_t) (*NACL_VTBL(NaClDesc, self->wrapped)->
- Seek)(self->wrapped, (nacl_off64_t) offset, whence);
-}
-
-static int NaClGioNaClDescFlush(struct Gio *vself) {
- UNREFERENCED_PARAMETER(vself);
- return 0;
-}
-
-static int NaClGioNaClDescClose(struct Gio *vself) {
- struct NaClGioNaClDesc *self = (struct NaClGioNaClDesc *) vself;
-
- NaClDescUnref(self->wrapped);
- self->wrapped = 0;
- return 0;
-}
-
-static void NaClGioNaClDescDtor(struct Gio *vself) {
- struct NaClGioNaClDesc *self = (struct NaClGioNaClDesc *) vself;
-
- if (NULL != self->wrapped) {
- NaClDescUnref(self->wrapped);
- self->wrapped = 0;
- }
- NACL_VTBL(Gio, self) = NULL;
- /* Gio base class has no Dtor */
-}
-
-const struct GioVtbl kNaClGioNaClDescVtbl = {
- NaClGioNaClDescDtor,
- NaClGioNaClDescRead,
- NaClGioNaClDescWrite,
- NaClGioNaClDescSeek,
- NaClGioNaClDescFlush,
- NaClGioNaClDescClose,
-};
« no previous file with comments | « src/trusted/gio/gio_nacl_desc.h ('k') | src/trusted/gio/gio_nacl_desc_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698