Skip to content

Commit

Permalink
Remove deprecated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitshifter committed Jun 8, 2024
1 parent 9f812df commit d2b6675
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions codegen/templates/quat.rs.tera
Original file line number Diff line number Diff line change
Expand Up @@ -1191,27 +1191,12 @@ impl {{ self_t }} {
pub fn as_dquat(self) -> DQuat {
DQuat::from_xyzw(self.x as f64, self.y as f64, self.z as f64, self.w as f64)
}

#[inline]
#[must_use]
#[deprecated(since="0.24.2", note="Use as_dquat() instead")]
pub fn as_f64(self) -> DQuat {
self.as_dquat()
}

{% elif scalar_t == "f64" %}
#[inline]
#[must_use]
pub fn as_quat(self) -> Quat {
Quat::from_xyzw(self.x as f32, self.y as f32, self.z as f32, self.w as f32)
}

#[inline]
#[must_use]
#[deprecated(since="0.24.2", note="Use as_quat() instead")]
pub fn as_f32(self) -> Quat {
self.as_quat()
}
{% endif %}
}

Expand Down

0 comments on commit d2b6675

Please sign in to comment.