Does removing the battery while connected to power extend battery life?
On many recent Macs, you cannot remove the battery (at least not easily), so this simply wouldn't work.

In general, it's kind of pointless to do that, as you're negating a benefit of having the battery: if the power goes out or the cable gets pulled (especially if it's a magnetic cable), you lose power just like a desktop would.

Ultimately, I would recommend not bothering in either the Mac or Windows case.