Issue #2209395 by markpavlitski: remove unused $success variable