diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-05-09 16:41:28 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-05-10 08:38:15 +0800 |
commit | c731b5450576a8dd0afb1d2dd013203235395a4f (patch) | |
tree | 25d5e675d04f61878f07a7402d2322cb7c65d0b3 /BaseTools/Source/Python/AutoGen | |
parent | 6b285ca3663d3c71cc68d01684a98f0d7537885e (diff) | |
download | edk2-c731b5450576a8dd0afb1d2dd013203235395a4f.tar.gz edk2-c731b5450576a8dd0afb1d2dd013203235395a4f.tar.bz2 edk2-c731b5450576a8dd0afb1d2dd013203235395a4f.zip |
BaseTools: Remove the redundant code
the ArraySize and Array already be got in line 1093, so this code are
redundant.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/GenC.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/BaseTools/Source/Python/AutoGen/GenC.py b/BaseTools/Source/Python/AutoGen/GenC.py index 6192e86753..40a343ca10 100644 --- a/BaseTools/Source/Python/AutoGen/GenC.py +++ b/BaseTools/Source/Python/AutoGen/GenC.py @@ -1098,16 +1098,6 @@ def CreateModulePcdCode(Info, AutoGenC, AutoGenH, Pcd): elif Pcd.Type != TAB_PCDS_FIXED_AT_BUILD and Pcd.DatumType in TAB_PCD_NUMERIC_TYPES_VOID:
Value = "((%s)%s)" % (Pcd.DatumType, Value)
- if Pcd.DatumType not in TAB_PCD_NUMERIC_TYPES_VOID:
- # handle structure PCD
- if Pcd.MaxDatumSize is None or Pcd.MaxDatumSize == '':
- EdkLogger.error("build", AUTOGEN_ERROR,
- "Unknown [MaxDatumSize] of PCD [%s.%s]" % (Pcd.TokenSpaceGuidCName, TokenCName),
- ExtraData="[%s]" % str(Info))
-
- ArraySize = int(Pcd.MaxDatumSize, 0)
- Array = '[%d]' % ArraySize
-
if Pcd.Type == TAB_PCDS_PATCHABLE_IN_MODULE:
PcdValueName = '_PCD_PATCHABLE_VALUE_' + TokenCName
else:
|