diff --git a/src/libANGLE/Display.cpp b/src/libANGLE/Display.cpp index a939e41542b..f97057d7a0d 100644 --- a/src/libANGLE/Display.cpp +++ b/src/libANGLE/Display.cpp @@ -898,27 +898,6 @@ Display *Display::GetDisplayFromDevice(Device *device, const AttributeMap &attri return display; } -// static -Display::EglDisplaySet Display::GetEglDisplaySet() -{ - Display::EglDisplaySet displays; - - ANGLEPlatformDisplayMap *anglePlatformDisplays = GetANGLEPlatformDisplayMap(); - DevicePlatformDisplayMap *devicePlatformDisplays = GetDevicePlatformDisplayMap(); - - for (auto anglePlatformDisplayMapEntry : *anglePlatformDisplays) - { - displays.insert(anglePlatformDisplayMapEntry.second); - } - - for (auto devicePlatformDisplayMapEntry : *devicePlatformDisplays) - { - displays.insert(devicePlatformDisplayMapEntry.second); - } - - return displays; -} - Display::Display(EGLenum platform, EGLNativeDisplayType displayId, Device *eglDevice) : mState(displayId), mImplementation(nullptr), diff --git a/src/libANGLE/Display.h b/src/libANGLE/Display.h index f08c0ffbac1..feae7cbbc82 100644 --- a/src/libANGLE/Display.h +++ b/src/libANGLE/Display.h @@ -144,7 +144,6 @@ class Display final : public LabeledObject, static Display *GetExistingDisplayFromNativeDisplay(EGLNativeDisplayType nativeDisplay); using EglDisplaySet = angle::HashSet; - static EglDisplaySet GetEglDisplaySet(); static const ClientExtensions &GetClientExtensions(); static const std::string &GetClientExtensionString();