Skip to content

Commit

Permalink
fix ineffectual assignments
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Sep 18, 2023
1 parent 0bab7cc commit ffaa693
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions internal/wrench/scripts/stat-mach-core.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ func init() {
return nil, err
}
durationZigBuild := time.Since(step)
step = time.Now()

wipeBuildCache := func() {
_ = os.RemoveAll(filepath.Join(repoDir, "zig-out"))
Expand All @@ -115,7 +114,6 @@ func init() {
return nil, err
}
durationZigBuild2 := time.Since(step)
step = time.Now()

fiTexturedCube, err := os.Stat(filepath.Join(repoDir, "zig-out/bin/textured-cube"+exeExt))
if err != nil {
Expand All @@ -127,7 +125,6 @@ func init() {
}
statBinarySizeBytesTexturedCube := fiTexturedCube.Size()
statBinarySizeBytesTriangle := fiTriangle.Size()
step = time.Now()

statNumExecutables := 0
infos, err := os.ReadDir(filepath.Join(repoDir, "zig-out/bin"))
Expand All @@ -146,13 +143,11 @@ func init() {
return nil, err
}
durationDirStatsPostBuild := time.Since(step)
step = time.Now()

statDawnSizeBytes, _, err := DirStats(filepath.Join(repoDir, "zig-cache/mach"))
if err != nil {
return nil, err
}
step = time.Now()

wipeBuildCache()
step = time.Now()
Expand All @@ -161,7 +156,6 @@ func init() {
return nil, err
}
durationZigBuildTexturedCube := time.Since(step)
step = time.Now()

wipeBuildCache()
step = time.Now()
Expand All @@ -170,7 +164,6 @@ func init() {
return nil, err
}
durationZigBuildTriangle := time.Since(step)
step = time.Now()

wipeBuildCache()
step = time.Now()
Expand Down Expand Up @@ -198,7 +191,6 @@ func init() {
}
statBinarySizeBytesTriangleReleaseFast := fiTriangle.Size()

step = time.Now()
repoHEAD, err := GitRevParse(os.Stderr, repoDir, "HEAD")
if err != nil {
return nil, errors.Wrap(err, "GitRevParse")
Expand Down

0 comments on commit ffaa693

Please sign in to comment.