Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
Static function Display::GetEglDisplaySet()
is no longer used. The function was first introduced in
https://chromium-review.googlesource.com/c/angle/angle/+/3294581,
but the usage was removed in
https://chromium-review.googlesource.com/c/angle/angle/+/4742383.

Remove the unused function.

Bug: b/362604439
Change-Id: I007a5850f642a46f6d141ee88cfd6e221f9358fe
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5877313
Reviewed-by: Charlie Lao <[email protected]>
Commit-Queue: Yuxin Hu <[email protected]>
  • Loading branch information
HuYuxin authored and Angle LUCI CQ committed Sep 20, 2024
1 parent 4d613ca commit 0de7c43
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
21 changes: 0 additions & 21 deletions src/libANGLE/Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 0 additions & 1 deletion src/libANGLE/Display.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ class Display final : public LabeledObject,
static Display *GetExistingDisplayFromNativeDisplay(EGLNativeDisplayType nativeDisplay);

using EglDisplaySet = angle::HashSet<Display *>;
static EglDisplaySet GetEglDisplaySet();

static const ClientExtensions &GetClientExtensions();
static const std::string &GetClientExtensionString();
Expand Down

0 comments on commit 0de7c43

Please sign in to comment.