Boot Camp Assistant: "Your disk could not be restored to a single partition." I want to delete my Windows partition and regrow my Mac partition to use the whole disk. But when I click Restore in the Boot Camp Assistant, it says:


  Your disk could not be restored to a single partition.
  
  An error occurred while restoring the disk to a single partition.


I'm using Mac OS X 10.8.5, on a mid-2009 MacBook Pro.
WARNING: This answer may cause a problem with El Capitan! Read Warren Pena's comment below. If anyone knows how to get the disk space back on El Capitan after doing this then please comment below.

I had this issue and I solved it by doing the following.


Go to "Disk Utility.app"
Select your Windows Partition
Click "Erase" and select "Mac OS Extended (Journaled)"
Erase the partition
Once that has completed, select the Complete Disk (Not Partitioned)

Now select "Partition"
Select the newly Formatted "Windows" partition and select the "-" symbol at the bottom to remove the partion

You should see an empty space where the partition was
Select your main partition, and to the right where it says "Size", type the Disk's full size and hit enter

After Disk Utility completes the resizing, you should now have a single, full partition again.