Skip to content

Commit 296e36d

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 b0fdb7b commit 296e36d

File tree

1 file changed

+0
-68
lines changed

1 file changed

+0
-68
lines changed

rust/src/medium_level_il/function.rs

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ use super::{
88
};
99
use crate::architecture::CoreArchitecture;
1010
use crate::basic_block::BasicBlock;
11-
use crate::confidence::Conf;
1211
use crate::disassembly::DisassemblySettings;
1312
use crate::flowgraph::FlowGraph;
1413
use crate::function::{Function, Location};
1514
use crate::rc::{Array, CoreArrayProvider, CoreArrayProviderInner, Ref, RefCountable};
16-
use crate::types::Type;
1715
use crate::variable::{PossibleValueSet, RegisterValue, SSAVariable, UserVariableValue, Variable};
1816

1917
// TODO: Does this belong here?
@@ -116,44 +114,6 @@ impl MediumLevelILFunction {
116114
unsafe { Array::new(blocks, count, context) }
117115
}
118116

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-
157117
/// Allows the user to specify a PossibleValueSet value for an MLIL
158118
/// variable at its definition site.
159119
///
@@ -245,34 +205,6 @@ impl MediumLevelILFunction {
245205
Ok(())
246206
}
247207

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-
276208
/// Returns a list of ILReferenceSource objects (IL xrefs or cross-references)
277209
/// that reference the given variable. The variable is a local variable that can be either on the stack,
278210
/// in a register, or in a flag.

0 commit comments

Comments
 (0)