Remove HelpNameTable

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2023-07-10 02:26:44 +02:00
parent 976e055252
commit 8b9c9a5bd2
3 changed files with 11 additions and 33 deletions

View File

@@ -12,16 +12,11 @@ import (
// (for many use cases the index is sufficient)
var CounterNameTable = *QueryNameTable("Counter 009")
var HelpNameTable = *QueryNameTable("Help 009")
func (p *perfObjectType) LookupName() string {
return CounterNameTable.LookupString(p.ObjectNameTitleIndex)
}
func (p *perfObjectType) LookupHelp() string {
return HelpNameTable.LookupString(p.ObjectHelpTitleIndex)
}
type NameTable struct {
byIndex map[uint32]string
byString map[string]uint32