Removed unnecessary clear() methods.