Changeset 148621 in webkit
- Timestamp:
- Apr 17, 2013 11:38:04 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r148620 r148621 1 2013-04-17 Leo Yang <leoyang@rim.com> 2 3 Lots of unused parameter warnings in filesystem code 4 https://bugs.webkit.org/show_bug.cgi?id=114747 5 6 Reviewed by Carlos Garcia Campos. 7 8 Comment out or remove unused parameter identifiers. 9 10 No functionalities changed, no new tests. 11 12 * Modules/filesystem/DOMFileSystem.cpp: Comment out |snapshot| because 13 it is referred in the comments inside the function. 14 (WebCore): 15 * Modules/filesystem/DOMFileSystemSync.cpp: Ditto. 16 (WebCore): 17 * Modules/filesystem/FileWriter.cpp: Remove unused |ec|. 18 (WebCore::FileWriter::abort): 19 * Modules/filesystem/FileWriterSync.cpp: 20 (WebCore::FileWriterSync::didWrite): Remove unused |bytes|. 21 * platform/AsyncFileSystemCallbacks.h: 22 (WebCore::AsyncFileSystemCallbacks::didOpenFileSystem): Comment out unused parameters 23 because the function is inlined. 24 (WebCore::AsyncFileSystemCallbacks::didCreateSnapshotFile): Ditto. 25 (WebCore::AsyncFileSystemCallbacks::didReadDirectoryEntry): Ditto. 26 (WebCore::AsyncFileSystemCallbacks::didReadDirectoryEntries): Ditto. 27 (WebCore::AsyncFileSystemCallbacks::didCreateFileWriter): Ditto. 28 * platform/blackberry/WorkerAsyncFileSystemBlackBerry.cpp: 29 (WebCore::WorkerAsyncFileSystemBlackBerry::createWriterOnMainThread): Remove unused |client|. 30 1 31 2013-04-17 Brent Fulgham <bfulgham@webkit.org> 2 32 -
trunk/Source/WebCore/Modules/filesystem/DOMFileSystem.cpp
r146537 r148621 156 156 } 157 157 158 virtual void didCreateSnapshotFile(const FileMetadata& metadata, PassRefPtr<BlobDataHandle> snapshot)158 virtual void didCreateSnapshotFile(const FileMetadata& metadata, PassRefPtr<BlobDataHandle> /* snapshot */) 159 159 { 160 160 ASSERT(!metadata.platformPath.isEmpty()); -
trunk/Source/WebCore/Modules/filesystem/DOMFileSystemSync.cpp
r145771 r148621 114 114 } 115 115 116 virtual void didCreateSnapshotFile(const FileMetadata& metadata, PassRefPtr<BlobDataHandle> snapshot)116 virtual void didCreateSnapshotFile(const FileMetadata& metadata, PassRefPtr<BlobDataHandle> /* snapshot */) 117 117 { 118 118 // We can't directly use the snapshot blob data handle because the content type on it hasn't been set. -
trunk/Source/WebCore/Modules/filesystem/FileWriter.cpp
r146537 r148621 169 169 } 170 170 171 void FileWriter::abort(ExceptionCode& ec)171 void FileWriter::abort(ExceptionCode&) 172 172 { 173 173 ASSERT(writer()); -
trunk/Source/WebCore/Modules/filesystem/FileWriterSync.cpp
r111075 r148621 92 92 } 93 93 94 void FileWriterSync::didWrite(long long bytes, bool complete)94 void FileWriterSync::didWrite(long long, bool complete) 95 95 { 96 96 ASSERT(m_error == FileError::OK); -
trunk/Source/WebCore/platform/AsyncFileSystemCallbacks.h
r145771 r148621 51 51 52 52 // Called when a requested file system is opened. 53 virtual void didOpenFileSystem(const String& name, const KURL& rootURL, PassOwnPtr<AsyncFileSystem>) { ASSERT_NOT_REACHED(); }53 virtual void didOpenFileSystem(const String& /* name */, const KURL& /* rootURL */, PassOwnPtr<AsyncFileSystem>) { ASSERT_NOT_REACHED(); } 54 54 55 55 // Called when a file metadata is read successfully. … … 57 57 58 58 // Called when a snapshot file is created successfully. 59 virtual void didCreateSnapshotFile(const FileMetadata&, PassRefPtr<BlobDataHandle> snapshot) { ASSERT_NOT_REACHED(); }59 virtual void didCreateSnapshotFile(const FileMetadata&, PassRefPtr<BlobDataHandle> /* snapshot */) { ASSERT_NOT_REACHED(); } 60 60 61 61 // Called when a directory entry is read. 62 virtual void didReadDirectoryEntry(const String& name, bool isDirectory) { ASSERT_NOT_REACHED(); }62 virtual void didReadDirectoryEntry(const String& /* name */, bool /* isDirectory */) { ASSERT_NOT_REACHED(); } 63 63 64 64 // Called after a chunk of directory entries have been read (i.e. indicates it's good time to call back to the application). If hasMore is true there can be more chunks. 65 virtual void didReadDirectoryEntries(bool hasMore) { ASSERT_NOT_REACHED(); }65 virtual void didReadDirectoryEntries(bool /* hasMore */) { ASSERT_NOT_REACHED(); } 66 66 67 67 // Called when an AsyncFileWrter has been created successfully. 68 virtual void didCreateFileWriter(PassOwnPtr<AsyncFileWriter>, long long length) { ASSERT_NOT_REACHED(); }68 virtual void didCreateFileWriter(PassOwnPtr<AsyncFileWriter>, long long /* length */) { ASSERT_NOT_REACHED(); } 69 69 70 70 // Called when there was an error. -
trunk/Source/WebCore/platform/blackberry/WorkerAsyncFileSystemBlackBerry.cpp
r148242 r148621 120 120 } 121 121 122 void WorkerAsyncFileSystemBlackBerry::createWriterOnMainThread(ScriptExecutionContext*, WebFileSystem* platformFileSystem, AsyncFileWriterClient* client, const KURL& path, WorkerPlatformAsyncFileSystemCallbacks* callbacks)122 void WorkerAsyncFileSystemBlackBerry::createWriterOnMainThread(ScriptExecutionContext*, WebFileSystem* platformFileSystem, AsyncFileWriterClient*, const KURL& path, WorkerPlatformAsyncFileSystemCallbacks* callbacks) 123 123 { 124 124 WebFileWriter::createWriter(platformFileSystem, fileSystemURLToPath(path).utf8().data(), callbacks);
Note: See TracChangeset
for help on using the changeset viewer.