Skip to content

Commit 0c9e976

Browse files
committed
[Rust] Remove deprecated MLIL functions
These have been deprecated since last stable, so they will be removed now. I do believe that there might be some external users of this api so we should alert them.
1 parent da3fe9b commit 0c9e976

File tree

1 file changed

+0
-66
lines changed

1 file changed

+0
-66
lines changed

rust/src/medium_level_il/function.rs

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -116,44 +116,6 @@ impl MediumLevelILFunction {
116116
unsafe { Array::new(blocks, count, context) }
117117
}
118118

119-
#[deprecated = "Use `Function::create_user_stack_var` instead"]
120-
pub fn create_user_stack_var<'a, C: Into<Conf<&'a Type>>>(
121-
&self,
122-
offset: i64,
123-
var_type: C,
124-
name: &str,
125-
) {
126-
self.function()
127-
.create_user_stack_var(offset, var_type, name)
128-
}
129-
130-
#[deprecated = "Use `Function::delete_user_stack_var` instead"]
131-
pub fn delete_user_stack_var(&self, offset: i64) {
132-
self.function().delete_user_stack_var(offset)
133-
}
134-
135-
#[deprecated = "Use `Function::create_user_var` instead"]
136-
pub fn create_user_var<'a, C: Into<Conf<&'a Type>>>(
137-
&self,
138-
var: &Variable,
139-
var_type: C,
140-
name: &str,
141-
ignore_disjoint_uses: bool,
142-
) {
143-
self.function()
144-
.create_user_var(var, var_type, name, ignore_disjoint_uses)
145-
}
146-
147-
#[deprecated = "Use `Function::delete_user_var` instead"]
148-
pub fn delete_user_var(&self, var: &Variable) {
149-
self.function().delete_user_var(var)
150-
}
151-
152-
#[deprecated = "Use `Function::is_var_user_defined` instead"]
153-
pub fn is_var_user_defined(&self, var: &Variable) -> bool {
154-
self.function().is_var_user_defined(var)
155-
}
156-
157119
/// Allows the user to specify a PossibleValueSet value for an MLIL
158120
/// variable at its definition site.
159121
///
@@ -245,34 +207,6 @@ impl MediumLevelILFunction {
245207
Ok(())
246208
}
247209

248-
#[deprecated = "Use `Function::create_auto_stack_var` instead"]
249-
pub fn create_auto_stack_var<'a, T: Into<Conf<&'a Type>>>(
250-
&self,
251-
offset: i64,
252-
var_type: T,
253-
name: &str,
254-
) {
255-
self.function()
256-
.create_auto_stack_var(offset, var_type, name)
257-
}
258-
259-
#[deprecated = "Use `Function::delete_auto_stack_var` instead"]
260-
pub fn delete_auto_stack_var(&self, offset: i64) {
261-
self.function().delete_auto_stack_var(offset)
262-
}
263-
264-
#[deprecated = "Use `Function::create_auto_var` instead"]
265-
pub fn create_auto_var<'a, C: Into<Conf<&'a Type>>>(
266-
&self,
267-
var: &Variable,
268-
var_type: C,
269-
name: &str,
270-
ignore_disjoint_uses: bool,
271-
) {
272-
self.function()
273-
.create_auto_var(var, var_type, name, ignore_disjoint_uses)
274-
}
275-
276210
/// Returns a list of ILReferenceSource objects (IL xrefs or cross-references)
277211
/// that reference the given variable. The variable is a local variable that can be either on the stack,
278212
/// in a register, or in a flag.

0 commit comments

Comments
 (0)