CDamageVulnerability: Remove unnecessary inline specifiers

These functions are already marked static, so they're already a
candidate for inlining.

We can mark them as constexpr though, given how trivial they are.
This commit is contained in:
Lioncash 2020-04-26 00:53:50 -04:00
parent b76b956339
commit f1ff48c38b
1 changed files with 2 additions and 2 deletions

View File

@ -34,11 +34,11 @@ const CDamageVulnerability CDamageVulnerability::sPassThroughVulnerability(
EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough,
EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EDeflectType::None);
static inline bool is_not_immune(EVulnerability vuln) {
static constexpr bool is_not_immune(EVulnerability vuln) {
return vuln != EVulnerability::Immune && vuln != EVulnerability::DirectImmune;
}
static inline bool is_normal_or_weak(EVulnerability vuln) {
static constexpr bool is_normal_or_weak(EVulnerability vuln) {
return vuln == EVulnerability::Normal || vuln == EVulnerability::Weak;
}