Remove Jailbreak and restore to factory settings without iTunes A friend has an iPhone and they need to wipe it and remove the jailbreak on it. They don't need a backup.

The problem is they don't have access to a computer with iTunes on it to do this.

Can this be done without iTunes? Will doing an 'erase all content and settings' lock the phone? Some posts I have read suggest if you do this the phone will get bricked.
I believe all of the current jailbreak solutions work by modifying an IPSW file for the device, and flashing that back on to it. To remove it, you would need a clean IPSW and to do that you need to restore it through iTunes. If you don't back it up first (wether that be on iCloud or iTunes), then obviously you'll lose all of the settings, apps, and app data on the phone as well.