Skip to content

Commit 05ee257

Browse files
committed
Remove unused APIs
1 parent 0468c5b commit 05ee257

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

gccjit_sys/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -613,9 +613,6 @@ extern {
613613
#[cfg(feature="master")]
614614
pub fn gcc_jit_type_set_packed(typ: *mut gcc_jit_type);
615615

616-
#[cfg(feature="master")]
617-
pub fn gcc_jit_type_is_const(typ: *mut gcc_jit_type) -> *mut gcc_jit_type;
618-
619616
#[cfg(feature="master")]
620617
pub fn gcc_jit_context_convert_vector(ctxt: *mut gcc_jit_context, loc: *mut gcc_jit_location, vector: *mut gcc_jit_rvalue, type_: *mut gcc_jit_type) -> *mut gcc_jit_rvalue;
621618

@@ -681,9 +678,6 @@ extern {
681678
#[cfg(feature="master")]
682679
pub fn gcc_jit_context_new_alignof(ctxt: *mut gcc_jit_context, typ: *mut gcc_jit_type) -> *mut gcc_jit_rvalue;
683680

684-
#[cfg(feature="master")]
685-
pub fn gcc_jit_lvalue_remove(lvalue: *mut gcc_jit_lvalue);
686-
687681
#[cfg(feature="master")]
688682
pub fn gcc_jit_rvalue_set_type(rvalue: *mut gcc_jit_rvalue, new_type: *mut gcc_jit_type);
689683

src/lvalue.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,6 @@ impl<'ctx> LValue<'ctx> {
180180
}
181181
}
182182

183-
#[cfg(feature="master")]
184-
pub fn remove(&self) {
185-
unsafe {
186-
gccjit_sys::gcc_jit_lvalue_remove(self.ptr);
187-
}
188-
}
189-
190183
pub fn set_tls_model(&self, model: TlsModel) {
191184
unsafe {
192185
gccjit_sys::gcc_jit_lvalue_set_tls_model(self.ptr, model.to_sys());

src/types.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,6 @@ impl<'ctx> Type<'ctx> {
233233
}
234234
}
235235

236-
#[cfg(feature="master")]
237-
pub fn is_const(&self) -> Option<Type<'ctx>> {
238-
unsafe {
239-
let value = gccjit_sys::gcc_jit_type_is_const(self.ptr);
240-
if value.is_null() {
241-
return None;
242-
}
243-
Some(from_ptr(value))
244-
}
245-
}
246-
247236
pub fn is_compatible_with(&self, typ: Type<'ctx>) -> bool {
248237
unsafe {
249238
gccjit_sys::gcc_jit_compatible_types(self.ptr, typ.ptr)

0 commit comments

Comments
 (0)