Changeset 148621 in webkit


Ignore:
Timestamp:
Apr 17, 2013 11:38:04 AM (11 years ago)
Author:
leoyang@rim.com
Message:

Lots of unused parameter warnings in filesystem code
https://bugs.webkit.org/show_bug.cgi?id=114747

Reviewed by Carlos Garcia Campos.

Comment out or remove unused parameter identifiers.

No functionalities changed, no new tests.

  • Modules/filesystem/DOMFileSystem.cpp: Comment out |snapshot| because

it is referred in the comments inside the function.
(WebCore):

  • Modules/filesystem/DOMFileSystemSync.cpp: Ditto.

(WebCore):

  • Modules/filesystem/FileWriter.cpp: Remove unused |ec|.

(WebCore::FileWriter::abort):

  • Modules/filesystem/FileWriterSync.cpp:

(WebCore::FileWriterSync::didWrite): Remove unused |bytes|.

  • platform/AsyncFileSystemCallbacks.h:

(WebCore::AsyncFileSystemCallbacks::didOpenFileSystem): Comment out unused parameters
because the function is inlined.
(WebCore::AsyncFileSystemCallbacks::didCreateSnapshotFile): Ditto.
(WebCore::AsyncFileSystemCallbacks::didReadDirectoryEntry): Ditto.
(WebCore::AsyncFileSystemCallbacks::didReadDirectoryEntries): Ditto.
(WebCore::AsyncFileSystemCallbacks::didCreateFileWriter): Ditto.

  • platform/blackberry/WorkerAsyncFileSystemBlackBerry.cpp:

(WebCore::WorkerAsyncFileSystemBlackBerry::createWriterOnMainThread): Remove unused |client|.

Location:
trunk/Source/WebCore
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148620 r148621  
     12013-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
    1312013-04-17  Brent Fulgham  <bfulgham@webkit.org>
    232
  • trunk/Source/WebCore/Modules/filesystem/DOMFileSystem.cpp

    r146537 r148621  
    156156    }
    157157
    158     virtual void didCreateSnapshotFile(const FileMetadata& metadata, PassRefPtr<BlobDataHandle> snapshot)
     158    virtual void didCreateSnapshotFile(const FileMetadata& metadata, PassRefPtr<BlobDataHandle> /* snapshot */)
    159159    {
    160160        ASSERT(!metadata.platformPath.isEmpty());
  • trunk/Source/WebCore/Modules/filesystem/DOMFileSystemSync.cpp

    r145771 r148621  
    114114    }
    115115
    116     virtual void didCreateSnapshotFile(const FileMetadata& metadata, PassRefPtr<BlobDataHandle> snapshot)
     116    virtual void didCreateSnapshotFile(const FileMetadata& metadata, PassRefPtr<BlobDataHandle> /* snapshot */)
    117117    {
    118118        // 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  
    169169}
    170170
    171 void FileWriter::abort(ExceptionCode& ec)
     171void FileWriter::abort(ExceptionCode&)
    172172{
    173173    ASSERT(writer());
  • trunk/Source/WebCore/Modules/filesystem/FileWriterSync.cpp

    r111075 r148621  
    9292}
    9393
    94 void FileWriterSync::didWrite(long long bytes, bool complete)
     94void FileWriterSync::didWrite(long long, bool complete)
    9595{
    9696    ASSERT(m_error == FileError::OK);
  • trunk/Source/WebCore/platform/AsyncFileSystemCallbacks.h

    r145771 r148621  
    5151
    5252    // 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(); }
    5454
    5555    // Called when a file metadata is read successfully.
     
    5757
    5858    // 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(); }
    6060
    6161    // 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(); }
    6363
    6464    // 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(); }
    6666
    6767    // 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(); }
    6969
    7070    // Called when there was an error.
  • trunk/Source/WebCore/platform/blackberry/WorkerAsyncFileSystemBlackBerry.cpp

    r148242 r148621  
    120120}
    121121
    122 void WorkerAsyncFileSystemBlackBerry::createWriterOnMainThread(ScriptExecutionContext*, WebFileSystem* platformFileSystem, AsyncFileWriterClient* client, const KURL& path, WorkerPlatformAsyncFileSystemCallbacks* callbacks)
     122void WorkerAsyncFileSystemBlackBerry::createWriterOnMainThread(ScriptExecutionContext*, WebFileSystem* platformFileSystem, AsyncFileWriterClient*, const KURL& path, WorkerPlatformAsyncFileSystemCallbacks* callbacks)
    123123{
    124124    WebFileWriter::createWriter(platformFileSystem, fileSystemURLToPath(path).utf8().data(), callbacks);
Note: See TracChangeset for help on using the changeset viewer.