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

Unified Diff: src/trusted/service_runtime/fs/xdr.c

Issue 10512008: Remove some unused code that fails to compile with -Wundef (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 8 years, 6 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/service_runtime/fs/xdr.h ('k') | src/trusted/service_runtime/service_runtime.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/fs/xdr.c
diff --git a/src/trusted/service_runtime/fs/xdr.c b/src/trusted/service_runtime/fs/xdr.c
deleted file mode 100644
index 85aa7ef4c22871dc47052ed85295975500fe186b..0000000000000000000000000000000000000000
--- a/src/trusted/service_runtime/fs/xdr.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2008 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.
- */
-
-/*
- * NaCl file system mini XDR-like serialization of basic file system types.
- */
-#include "native_client/src/shared/platform/nacl_log.h"
-
-#include "native_client/src/trusted/service_runtime/include/machine/_types.h"
-#include "native_client/src/trusted/service_runtime/fs/fs.h"
-#include "native_client/src/trusted/service_runtime/fs/xdr.h"
-
-/*
- * XDR externalization / internalization code for larger data types
- * for which the encoder/decoder should not be inlined.
- */
-
-/* macro used in all externalization/internalization functions */
-#define Ext(T, mem) do { \
- bump += nacl_ext_ ## T(buf + bump, dp->mem); \
- } while (0)
-
-#define Int(T, mem) do { \
- bump += nacl_int_ ## T(buf + bump, &dp->mem); \
- } while (0)
-
-#define S(T, mem) do { bump += sizeof(T); } while (0)
-
-#define G(Tag, Macro) \
- size_t NaCl ## Macro ## Tag(char *buf, struct Tag *dp) { \
- size_t bump = 0; \
- Macro(dev_t, dev); \
- Macro(ino_t, ino); \
- Macro(mode_t, mode); \
- Macro(uid_t, uid); \
- Macro(gid_t, gid); \
- Macro(nlink_t, nlink); \
- Macro(off_t, size); \
- Macro(time_t, atime); \
- Macro(time_t, mtime); \
- Macro(time_t, ctime); \
- \
- return bump; \
- }
-
-#define F(StructTag) G(StructTag, Ext) G(StructTag, Int)
-
-F(NaClFileAttr)
-
-#undef F
-#undef G
« no previous file with comments | « src/trusted/service_runtime/fs/xdr.h ('k') | src/trusted/service_runtime/service_runtime.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698