CorebootModulePkg: Remove unused static functions to prevent gcc build fail
authorScott Duplichan <scott@notabs.org>
Fri, 10 Apr 2015 02:05:57 +0000 (02:05 +0000)
committermauricema <mauricema@Edk2>
Fri, 10 Apr 2015 02:05:57 +0000 (02:05 +0000)
The gcc build will fail with -Werror=unused-function when a compilation
unit defines a static function but never calls it.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Scott Duplichan <scott@notabs.org>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17143 6f19259b-4bc3-4df7-8a09-765794883524

CorebootModulePkg/Library/CbParseLib/CbParseLib.c

index 4dc74ab..0e11632 100644 (file)
@@ -31,16 +31,6 @@ static UINT64 cb_unpack64(struct cbuint64 val)
   return LShiftU64 (val.hi, 32) | val.lo;\r
 }\r
 \r
-static const char *cb_mb_vendor_string(const struct cb_mainboard *cbm)\r
-{\r
-  return (char *)(cbm->strings + cbm->vendor_idx);\r
-}\r
-\r
-static const char *cb_mb_part_string(const struct cb_mainboard *cbm)\r
-{\r
-  return (char *)(cbm->strings + cbm->part_number_idx);\r
-}\r
-\r
 UINT16\r
 CbCheckSum16 (\r
   IN UINT16   *Buffer,\r