Removed incorrect optimization

This commit is contained in:
Eduard Urbach 2024-07-06 15:20:52 +02:00
parent fca944d26c
commit b886637dc3
Signed by: eduard
GPG key ID: 49226B848C78F6C8
7 changed files with 16 additions and 38 deletions

View file

@ -15,12 +15,6 @@ func (f *Function) TokenToRegister(t token.Token, register cpu.Register) error {
switch t.Kind {
case token.Identifier:
name := t.Text()
constant, exists := f.definitions[name]
if exists {
return f.ExpressionToRegister(constant.Value, register)
}
variable, exists := f.variables[name]
if !exists {