mirror of
				https://github.com/acidanthera/audk.git
				synced 2025-10-31 03:03:46 +01:00 
			
		
		
		
	BaseTools: StrGather remove functions no one calls
simplify the code and remove functions not called anymore Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
		
							parent
							
								
									549c59b30c
								
							
						
					
					
						commit
						4d83616f9d
					
				| @ -124,22 +124,6 @@ def DecToHexList(Dec, Digit = 8): | |||||||
| def AscToHexList(Ascii): | def AscToHexList(Ascii): | ||||||
|     return ['0x{0:02X}'.format(ord(Item)) for Item in Ascii] |     return ['0x{0:02X}'.format(ord(Item)) for Item in Ascii] | ||||||
| 
 | 
 | ||||||
| ## Create header of .h file |  | ||||||
| # |  | ||||||
| # Create a header of .h file |  | ||||||
| # |  | ||||||
| # @param BaseName: The basename of strings |  | ||||||
| # |  | ||||||
| # @retval Str:     A string for .h file header |  | ||||||
| # |  | ||||||
| def CreateHFileHeader(BaseName): |  | ||||||
|     Str = '' |  | ||||||
|     for Item in H_C_FILE_HEADER: |  | ||||||
|         Str = WriteLine(Str, Item) |  | ||||||
|     Str = WriteLine(Str, '#ifndef _' + BaseName.upper() + '_STRINGS_DEFINE_H_') |  | ||||||
|     Str = WriteLine(Str, '#define _' + BaseName.upper() + '_STRINGS_DEFINE_H_') |  | ||||||
|     return Str |  | ||||||
| 
 |  | ||||||
| ## Create content of .h file | ## Create content of .h file | ||||||
| # | # | ||||||
| # Create content of .h file | # Create content of .h file | ||||||
| @ -204,19 +188,6 @@ def CreateHFile(BaseName, UniObjectClass, IsCompatibleMode, UniGenCFlag): | |||||||
| 
 | 
 | ||||||
|     return HFile |     return HFile | ||||||
| 
 | 
 | ||||||
| ## Create header of .c file |  | ||||||
| # |  | ||||||
| # Create a header of .c file |  | ||||||
| # |  | ||||||
| # @retval Str:     A string for .c file header |  | ||||||
| # |  | ||||||
| def CreateCFileHeader(): |  | ||||||
|     Str = '' |  | ||||||
|     for Item in H_C_FILE_HEADER: |  | ||||||
|         Str = WriteLine(Str, Item) |  | ||||||
| 
 |  | ||||||
|     return Str |  | ||||||
| 
 |  | ||||||
| ## Create a buffer to store all items in an array | ## Create a buffer to store all items in an array | ||||||
| # | # | ||||||
| # @param BinBuffer   Buffer to contain Binary data. | # @param BinBuffer   Buffer to contain Binary data. | ||||||
| @ -493,7 +464,6 @@ def CreateCFileEnd(): | |||||||
| # | # | ||||||
| def CreateCFile(BaseName, UniObjectClass, IsCompatibleMode, FilterInfo): | def CreateCFile(BaseName, UniObjectClass, IsCompatibleMode, FilterInfo): | ||||||
|     CFile = '' |     CFile = '' | ||||||
|     #CFile = WriteLine(CFile, CreateCFileHeader()) |  | ||||||
|     CFile = WriteLine(CFile, CreateCFileContent(BaseName, UniObjectClass, IsCompatibleMode, None, FilterInfo)) |     CFile = WriteLine(CFile, CreateCFileContent(BaseName, UniObjectClass, IsCompatibleMode, None, FilterInfo)) | ||||||
|     CFile = WriteLine(CFile, CreateCFileEnd()) |     CFile = WriteLine(CFile, CreateCFileEnd()) | ||||||
|     return CFile |     return CFile | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user