summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/clang.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/clang.rs b/src/clang.rs
index d69c8b14..bc3d511f 100755
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -704,21 +704,6 @@ impl Type {
unsafe { clang_isFunctionTypeVariadic(self.x) != 0 }
}
- /// Given that this type is a function type, get the types of its
- /// parameters.
- pub fn arg_types(&self) -> Vec<Type> {
- unsafe {
- let num = clang_getNumArgTypes(self.x) as usize;
- let mut args = vec![];
- for i in 0..num {
- args.push(Type {
- x: clang_getArgType(self.x, i as c_uint),
- });
- }
- args
- }
- }
-
/// Given that this type is a function type, get the type of its return
/// value.
pub fn ret_type(&self) -> Option<Type> {