Skip to content

Commit

Permalink
Remove local vars in Vector3 des
Browse files Browse the repository at this point in the history
  • Loading branch information
sasial-dev committed Jan 1, 2024
1 parent e14138b commit 5b14040
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions zap/src/irgen/des.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,9 @@ impl Des {

Ty::Boolean => self.push_assign(into, self.readu8().eq(1.0.into())),
Ty::Vector3 => {
self.push_local("x", Some(self.readnumty(NumTy::F32)));
self.push_local("y", Some(self.readnumty(NumTy::F32)));
self.push_local("z", Some(self.readnumty(NumTy::F32)));

self.push_assign(
into,
Expr::Vector3(Box::new("x".into()), Box::new("y".into()), Box::new("z".into())),
Expr::Vector3(Box::new(self.readf32()), Box::new(self.readf32()), Box::new(self.readf32())),
);
}
Ty::CFrame => {
Expand Down

0 comments on commit 5b14040

Please sign in to comment.