display: Remove dead metadata code
The IGC field in the metadata struct is not set, so getting will
just return the default value. The helper for HSIC is only called
in a legacy test.
CRs-Fixed: 2606686
Change-Id: Ie7786e42d917c076439ac62f5a351272ce5882a3
diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp
index bd49edc..22e6972 100644
--- a/libcopybit/copybit.cpp
+++ b/libcopybit/copybit.cpp
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2008 The Android Open Source Project
- * Copyright (c) 2010 - 2014, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2010 - 2014, 2020 The Linux Foundation. All rights reserved.
*
* Not a Contribution, Apache license notifications and license are retained
* for attribution purposes only.
@@ -529,14 +529,6 @@
// Set Color Space for MDP to configure CSC matrix
req->color_space = ITU_R_601;
- MetaData_t *metadata = NULL;
-
- if (src_hnd != NULL)
- metadata = (MetaData_t *)src_hnd->base_metadata;
-
- if (metadata && (metadata->operation & UPDATE_COLOR_SPACE)) {
- req->color_space = metadata->colorSpace;
- }
set_infos(ctx, req, flags);
set_image(&req->dst, dst);