summaryrefslogtreecommitdiff
path: root/rust/src/medium_level_il/function.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-12-09 15:04:18 -0500
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-12-10 17:35:19 -0500
commit315cd66b948e4a960d09050520b5d40fb33e5fb3 (patch)
treea6374cf9dc028c560c248dc629f3882df218a39f /rust/src/medium_level_il/function.rs
parentae02e4cfe187752766a1137b2ce87a5642e89c44 (diff)
[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.
Diffstat (limited to 'rust/src/medium_level_il/function.rs')
-rw-r--r--rust/src/medium_level_il/function.rs68
1 files changed, 0 insertions, 68 deletions
diff --git a/rust/src/medium_level_il/function.rs b/rust/src/medium_level_il/function.rs
index e5f72cc1..950f07f5 100644
--- a/rust/src/medium_level_il/function.rs
+++ b/rust/src/medium_level_il/function.rs
@@ -8,12 +8,10 @@ use super::{
};
use crate::architecture::CoreArchitecture;
use crate::basic_block::BasicBlock;
-use crate::confidence::Conf;
use crate::disassembly::DisassemblySettings;
use crate::flowgraph::FlowGraph;
use crate::function::{Function, Location};
use crate::rc::{Array, CoreArrayProvider, CoreArrayProviderInner, Ref, RefCountable};
-use crate::types::Type;
use crate::variable::{PossibleValueSet, RegisterValue, SSAVariable, UserVariableValue, Variable};
// TODO: Does this belong here?
@@ -116,44 +114,6 @@ impl MediumLevelILFunction {
unsafe { Array::new(blocks, count, context) }
}
- #[deprecated = "Use `Function::create_user_stack_var` instead"]
- pub fn create_user_stack_var<'a, C: Into<Conf<&'a Type>>>(
- &self,
- offset: i64,
- var_type: C,
- name: &str,
- ) {
- self.function()
- .create_user_stack_var(offset, var_type, name)
- }
-
- #[deprecated = "Use `Function::delete_user_stack_var` instead"]
- pub fn delete_user_stack_var(&self, offset: i64) {
- self.function().delete_user_stack_var(offset)
- }
-
- #[deprecated = "Use `Function::create_user_var` instead"]
- pub fn create_user_var<'a, C: Into<Conf<&'a Type>>>(
- &self,
- var: &Variable,
- var_type: C,
- name: &str,
- ignore_disjoint_uses: bool,
- ) {
- self.function()
- .create_user_var(var, var_type, name, ignore_disjoint_uses)
- }
-
- #[deprecated = "Use `Function::delete_user_var` instead"]
- pub fn delete_user_var(&self, var: &Variable) {
- self.function().delete_user_var(var)
- }
-
- #[deprecated = "Use `Function::is_var_user_defined` instead"]
- pub fn is_var_user_defined(&self, var: &Variable) -> bool {
- self.function().is_var_user_defined(var)
- }
-
/// Allows the user to specify a PossibleValueSet value for an MLIL
/// variable at its definition site.
///
@@ -245,34 +205,6 @@ impl MediumLevelILFunction {
Ok(())
}
- #[deprecated = "Use `Function::create_auto_stack_var` instead"]
- pub fn create_auto_stack_var<'a, T: Into<Conf<&'a Type>>>(
- &self,
- offset: i64,
- var_type: T,
- name: &str,
- ) {
- self.function()
- .create_auto_stack_var(offset, var_type, name)
- }
-
- #[deprecated = "Use `Function::delete_auto_stack_var` instead"]
- pub fn delete_auto_stack_var(&self, offset: i64) {
- self.function().delete_auto_stack_var(offset)
- }
-
- #[deprecated = "Use `Function::create_auto_var` instead"]
- pub fn create_auto_var<'a, C: Into<Conf<&'a Type>>>(
- &self,
- var: &Variable,
- var_type: C,
- name: &str,
- ignore_disjoint_uses: bool,
- ) {
- self.function()
- .create_auto_var(var, var_type, name, ignore_disjoint_uses)
- }
-
/// Returns a list of ILReferenceSource objects (IL xrefs or cross-references)
/// that reference the given variable. The variable is a local variable that can be either on the stack,
/// in a register, or in a flag.