NEW YORK — Aaron Harang knew the score, he’d done this before: No hits, too many tosses.

Harang didn’t allow a hit for seven innings but was pulled after 121 pitches, and reliever Luis Avilan gave up David Wright’s two-out single in the eighth as the Atlanta Braves beat the New York Mets 6-0 Friday night.

“It wasn’t that tough of a decision, really,” Braves manager Fredi Gonzalez said.

As Harang’s pitch count increased on a chilly evening, it seemed doubtful the former Mariner would go the distance. Harang walked six, including two in the sixth inning and another pair in the seventh.

Save 75% on a Digital Subscription Today

“I know how it works,” he said.

In 2011, in his first start for San Diego after missing a month because of a foot injury, he pitched no-hit ball for six innings and was taken out after 95 pitches.

Harang (3-1) retired the first two Mets batters in the seventh, then went to full counts on the next three. He threw 23 pitches in the inning.

“If I’m through eight, I’m going back out,” Harang said.

NEW YORK — After months of speculation, the New York Mets traded first baseman Ike Davis to the Pittsburgh Pirates, jettisoning a homegrown prospect they once viewed as a potential cornerstone of their lineup for years to come.

After an ankle injury cut short his season in 2011, however, Davis struggled to rediscover the stroke that once made him one of the franchise’s most promising talents. He batted only .205 last season.