From 4aa165553bfb2a74e2e54f08fd9507e23bc24708 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 20 Aug 2011 10:51:31 -0700 Subject: Move bump_dp, get_dp from rust_shape.cpp to rust_shape.h Put out the darwin fire for real --- src/rt/rust_shape.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/rt/rust_shape.cpp') diff --git a/src/rt/rust_shape.cpp b/src/rt/rust_shape.cpp index aecb9254158..3a83f3d4c78 100644 --- a/src/rt/rust_shape.cpp +++ b/src/rt/rust_shape.cpp @@ -35,24 +35,6 @@ const uint8_t CMP_LE = 2u; namespace shape { -// NB: This function does not align. -template -inline data_pair -bump_dp(ptr_pair &ptr) { - data_pair data(*reinterpret_cast(ptr.fst), - *reinterpret_cast(ptr.snd)); - ptr += sizeof(T); - return data; -} - -template -inline data_pair -get_dp(ptr_pair &ptr) { - data_pair data(*reinterpret_cast(ptr.fst), - *reinterpret_cast(ptr.snd)); - return data; -} - // A shape printer, useful for debugging void -- cgit 1.4.1-3-g733a5