Changeset 162355 in webkit


Ignore:
Timestamp:
Jan 20, 2014 9:25:38 AM (10 years ago)
Author:
andersca@apple.com
Message:

Remove an unused member variable
https://bugs.webkit.org/show_bug.cgi?id=127295

Reviewed by Antti Koivisto.

  • wtf/MainThread.cpp:

(WTF::FunctionWithContext::FunctionWithContext):
(WTF::FunctionWithContext::operator == ):
(WTF::dispatchFunctionsFromMainThread):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r162353 r162355  
     12014-01-20  Anders Carlsson  <andersca@apple.com>
     2
     3        Remove an unused member variable
     4        https://bugs.webkit.org/show_bug.cgi?id=127295
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * wtf/MainThread.cpp:
     9        (WTF::FunctionWithContext::FunctionWithContext):
     10        (WTF::FunctionWithContext::operator == ):
     11        (WTF::dispatchFunctionsFromMainThread):
     12
    1132014-01-20  Anders Carlsson  <andersca@apple.com>
    214
  • trunk/Source/WTF/wtf/MainThread.cpp

    r162235 r162355  
    4242    MainThreadFunction* function;
    4343    void* context;
    44     ThreadCondition* syncFlag;
    45 
    46     FunctionWithContext(MainThreadFunction* function = 0, void* context = 0, ThreadCondition* syncFlag = 0)
     44
     45    FunctionWithContext(MainThreadFunction* function = nullptr, void* context = nullptr)
    4746        : function(function)
    4847        , context(context)
    49         , syncFlag(syncFlag)
    50     {
     48    {
    5149    }
    5250    bool operator == (const FunctionWithContext& o)
    5351    {
    54         return function == o.function
    55             && context == o.context
    56             && syncFlag == o.syncFlag;
     52        return function == o.function && context == o.context;
    5753    }
    5854};
     
    166162
    167163        invocation.function(invocation.context);
    168         if (invocation.syncFlag) {
    169             MutexLocker locker(mainThreadFunctionQueueMutex());
    170             invocation.syncFlag->signal();
    171         }
    172164
    173165        // If we are running accumulated functions for too long so UI may become unresponsive, we need to
Note: See TracChangeset for help on using the changeset viewer.