Skip to content

Commit

Permalink
remove redundant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
letFunny committed Aug 29, 2024
1 parent 475a2c5 commit c7e9693
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions internal/slicer/slicer.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,6 @@ type generateManifestsOptions struct {
targetDir string
}

// generateManifests generates the Chisel manifest(s) at the specified paths. It
// returns the paths inside the rootfs where the manifest(s) are generated.
func generateManifests(options *generateManifestsOptions) error {
manifestSlices, err := locateManifestSlices(options.selection)
if err != nil {
Expand Down
5 changes: 0 additions & 5 deletions internal/slicer/slicer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,6 @@ func runSlicerTests(c *C, tests []slicerTest) {
}
}

// Create the files on disk.
releaseDir := c.MkDir()
for path, data := range test.release {
fpath := filepath.Join(releaseDir, path)
Expand All @@ -1217,7 +1216,6 @@ func runSlicerTests(c *C, tests []slicerTest) {
c.Assert(err, IsNil)
}

// Read the releases from the files on disk.
release, err := setup.ReadRelease(releaseDir)
c.Assert(err, IsNil)

Expand All @@ -1241,11 +1239,9 @@ func runSlicerTests(c *C, tests []slicerTest) {
Slice: "manifest",
})

// Get the selection.
selection, err := setup.Select(release, slices)
c.Assert(err, IsNil)

// Set up the archives.
archives := map[string]archive.Archive{}
for name, setupArchive := range release.Archives {
archive := &testutil.TestArchive{
Expand All @@ -1261,7 +1257,6 @@ func runSlicerTests(c *C, tests []slicerTest) {
archives[name] = archive
}

// Create the root directory and cut the slice selection.
options := slicer.RunOptions{
Selection: selection,
Archives: archives,
Expand Down

0 comments on commit c7e9693

Please sign in to comment.