Changeset 215944 in webkit


Ignore:
Timestamp:
Apr 28, 2017 1:57:08 PM (7 years ago)
Author:
eric.carlson@apple.com
Message:

Implement ondevicechange
https://bugs.webkit.org/show_bug.cgi?id=169872

Unreviewed, remove some dead code accidentally committed in r215929.

  • platform/mediastream/CaptureDeviceManager.cpp:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r215943 r215944  
     12017-04-28  Eric Carlson  <eric.carlson@apple.com>
     2
     3        Implement ondevicechange
     4        https://bugs.webkit.org/show_bug.cgi?id=169872
     5
     6        Unreviewed, remove some dead code accidentally committed in r215929.
     7
     8        * platform/mediastream/CaptureDeviceManager.cpp:
     9
    1102017-04-28  Chris Dumez  <cdumez@apple.com>
    211
  • trunk/Source/WebCore/platform/mediastream/CaptureDeviceManager.cpp

    r215929 r215944  
    8080}
    8181
    82 #if 0
    83 std::optional<CaptureDevice> CaptureDeviceManager::captureDeviceFromPersistentID(const String& captureDeviceID, const String& idHashSalt)
    84 {
    85     for (auto& device : captureDevices()) {
    86         auto hashedID = RealtimeMediaSourceCenter::singleton().hashStringWithSalt(device.persistentId(), idHashSalt);
    87         if (device.persistentId() == captureDeviceID)
    88             return device;
    89     }
    90 
    91     return std::nullopt;
    92 }
    93 
    94 for (auto& captureDevice : getMediaStreamDevices()) {
    95     auto hashedID = RealtimeMediaSourceCenter::singleton().hashStringWithSalt(captureDevice.persistentId(), idHashSalt);
    96     if (hashedID == uniqueID)
    97         return String { captureDevice.persistentId() };
    98 }
    99 
    100 return Exception { NOT_FOUND_ERR };
    101 
    102 #endif
    103 
    10482std::optional<CaptureDevice> CaptureDeviceManager::deviceWithUID(const String& deviceUID, RealtimeMediaSource::Type type)
    10583{
Note: See TracChangeset for help on using the changeset viewer.