From ba6afd88da6fbd18b0d8db8a85659b380d1b602b Mon Sep 17 00:00:00 2001 From: Gil Dekel Date: Tue, 21 Jan 2025 16:04:55 -0500 Subject: libs/ui: Remove getManufacturerId() from DisplayId There are currently no clients of DisplayId who use getManufacturerId(). This CL removes the parsing and serving of the manufacturer's ID from DisplayID's API, together with the only client getPnpId(PhysicalDisplayId), which also isn't use in real use cases (only tests). See: go/edid-display-ids-al13 Flag: com.android.graphics.surfaceflinger.flags.stable_edid_ids Bug: 390689046 Test: Display{Id|Identification} & libsurfaceflinger_unittest Change-Id: I03db2f6d71b32fcb387e99d9bc2730ab21760012 --- libs/ui/DisplayIdentification.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libs/ui/DisplayIdentification.cpp') diff --git a/libs/ui/DisplayIdentification.cpp b/libs/ui/DisplayIdentification.cpp index c9f0761a01..ee38f5044c 100644 --- a/libs/ui/DisplayIdentification.cpp +++ b/libs/ui/DisplayIdentification.cpp @@ -392,10 +392,6 @@ std::optional getPnpId(uint16_t manufacturerId) { return a && b && c ? std::make_optional(PnpId{a, b, c}) : std::nullopt; } -std::optional getPnpId(PhysicalDisplayId displayId) { - return getPnpId(displayId.getManufacturerId()); -} - std::optional parseDisplayIdentificationData( uint8_t port, const DisplayIdentificationData& data) { if (data.empty()) { -- cgit v1.2.3-59-g8ed1b