Mark a method as deprecated by printing a warning to the console the first time it's called