From 3c86d68a993eb2aa2b9f51748ef80d63811df793 Mon Sep 17 00:00:00 2001 From: Alessandro Arzilli Date: Wed, 27 Jan 2021 15:54:50 +0100 Subject: [PATCH] proc: remove dead code (#2321) --- pkg/proc/eval.go | 10 ---------- pkg/proc/variables.go | 3 --- 2 files changed, 13 deletions(-) diff --git a/pkg/proc/eval.go b/pkg/proc/eval.go index cec7641e..f6722fa2 100644 --- a/pkg/proc/eval.go +++ b/pkg/proc/eval.go @@ -36,8 +36,6 @@ type EvalScope struct { frameOffset int64 - aordr *dwarf.Reader // extra reader to load DW_AT_abstract_origin entries, do not initialize - // When the following pointer is not nil this EvalScope was created // by CallFunction and the expression evaluation is executing on a // different goroutine from the debugger's main goroutine. @@ -558,14 +556,6 @@ func (scope *EvalScope) image() *Image { return scope.BinInfo.funcToImage(scope.Fn) } -// globalFor returns a global scope for 'image' with the register values of 'scope'. -func (scope *EvalScope) globalFor(image *Image) *EvalScope { - r := *scope - r.Regs.StaticBase = image.StaticBase - r.Fn = &Function{cu: &compileUnit{image: image}} - return &r -} - // DwarfReader returns the DwarfReader containing the // Dwarf information for the target process. func (scope *EvalScope) DwarfReader() *reader.Reader { diff --git a/pkg/proc/variables.go b/pkg/proc/variables.go index 3876db08..be836944 100644 --- a/pkg/proc/variables.go +++ b/pkg/proc/variables.go @@ -24,9 +24,6 @@ const ( maxArrayStridePrefetch = 1024 // Maximum size of array stride for which we will prefetch the array contents - chanRecv = "chan receive" - chanSend = "chan send" - hashTophashEmptyZero = 0 // used by map reading code, indicates an empty cell hashTophashEmptyOne = 1 // used by map reading code, indicates an empty cell in Go 1.12 and later hashMinTopHashGo111 = 4 // used by map reading code, indicates minimum value of tophash that isn't empty or evacuated, in Go1.11