Remove Mac maximize window left margin
The 4 pixel margin is shown on the side of the screen the Dock is on.

I don't know any way to remove it other than to disable Dock:

launchctl unload /System/Library/LaunchAgents/com.apple.Dock.plist


However that also disables Mission Control and the application switcher, and it makes full screen windows stop working.