Deleted some unused code from Foundation\Resource.