summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-05-11 15:14:28 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-05-12 17:45:24 -0400
commitff406c03609896c0e764bf2ae5575a4c20538aab (patch)
treecf2ec426c49c5007d40bcb559d089f61e2498cdf /rust/src
parent0f0321bb94358b807fee1ba7a546f0762bf9785e (diff)
[Rust] Remove useless alias function
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/function.rs4
-rw-r--r--rust/src/medium_level_il/instruction.rs6
2 files changed, 2 insertions, 8 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs
index ec859f7e..58b310c7 100644
--- a/rust/src/function.rs
+++ b/rust/src/function.rs
@@ -2154,7 +2154,7 @@ impl Function {
/// Splits a variable at the definition site. The given `var` must be the
/// variable unique to the definition and should be obtained by using
- /// [crate::medium_level_il::MediumLevelILInstruction::get_split_var_for_definition] at the definition site.
+ /// [crate::medium_level_il::MediumLevelILInstruction::split_var_for_definition] at the definition site.
///
/// This function is not meant to split variables that have been previously merged. Use
/// [Function::unmerge_variables] to split previously merged variables.
@@ -2177,7 +2177,7 @@ impl Function {
/// Undoes variable splitting performed with [Function::split_variable]. The given `var`
/// must be the variable unique to the definition and should be obtained by using
- /// [crate::medium_level_il::MediumLevelILInstruction::get_split_var_for_definition] at the definition site.
+ /// [crate::medium_level_il::MediumLevelILInstruction::split_var_for_definition] at the definition site.
///
/// * `var` - variable to unsplit
pub fn unsplit_variable(&self, var: &Variable) {
diff --git a/rust/src/medium_level_il/instruction.rs b/rust/src/medium_level_il/instruction.rs
index ae550d91..b043788d 100644
--- a/rust/src/medium_level_il/instruction.rs
+++ b/rust/src/medium_level_il/instruction.rs
@@ -1376,12 +1376,6 @@ impl MediumLevelILInstruction {
Variable::new(var.ty, index, var.storage)
}
- /// alias for [MediumLevelILInstruction::split_var_for_definition]
- #[inline]
- pub fn get_split_var_for_definition(&self, var: &Variable) -> Variable {
- self.split_var_for_definition(var)
- }
-
fn lift_operand(&self, expr_idx: usize) -> Box<MediumLevelILLiftedInstruction> {
// TODO: UGH, if your gonna call it expr_idx, call the instruction and expression!!!!!
// TODO: We dont even need to say instruction in the type!