Remove unused variable in Connection::attach()