api_generator: sample: remove sync code