Remove unused var ()
Remove extra args from get_earnings() call
Remove unused variables from discount codes table