aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/rust-ffi.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-12-13 18:29:16 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-12-13 19:05:26 +0100
commitca87707c90c05289d0c7c1015f5750f6dd93708b (patch)
tree4364240709b658c599e12b79bff040b72c9afc3e /src/libutil/rust-ffi.hh
parent5a6d6da7aea23a48126a77f98612518af66bc203 (diff)
Get rid of CBox
Diffstat (limited to 'src/libutil/rust-ffi.hh')
-rw-r--r--src/libutil/rust-ffi.hh20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libutil/rust-ffi.hh b/src/libutil/rust-ffi.hh
index a77f83ac5..1466eabec 100644
--- a/src/libutil/rust-ffi.hh
+++ b/src/libutil/rust-ffi.hh
@@ -180,24 +180,4 @@ struct Result
}
};
-template<typename T>
-struct CBox
-{
- T * ptr;
-
- T * operator ->()
- {
- return ptr;
- }
-
- CBox(T * ptr) : ptr(ptr) { }
- CBox(const CBox &) = delete;
- CBox(CBox &&) = delete;
-
- ~CBox()
- {
- free(ptr);
- }
-};
-
}