Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

emitter: Get rid of CanDoOpWith

Lioncasheaf4973993eb
diff --git a/src/common/x64/emitter.h b/src/common/x64/emitter.h
index 5e228f1593..a1d8ab31fa 100644
--- a/src/common/x64/emitter.h
+++ b/src/common/x64/emitter.h
@@ -190,13 +190,6 @@ struct OpArg
return IsSimpleReg() && GetSimpleReg() == reg;
}
- bool CanDoOpWith(const OpArg &other) const
- {
- if (IsSimpleReg()) return true;
- if (!IsSimpleReg() && !other.IsSimpleReg() && !other.IsImm()) return false;
- return true;
- }
-
int GetImmBits() const
{
switch (scale)