Skip to content

Commit

Permalink
#4 Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
sklein94 committed Aug 10, 2022
1 parent 32a4b23 commit 3bd2b71
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions archive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,27 +128,3 @@ func (ar *DefaultSupportArchiveHandler) WriteFilesIntoArchive(filePaths []string
}
return nil
}

//// WriteLogFileIntoArchive Takes the path to a single logfile and write it to an initialized and created zip-archive.
//// The zipped file's dir structure matches the on the real filesystem.
//func (ar *DefaultSupportArchiveHandler) WriteLogFileIntoArchive(filePath string) error {
//
// fmt.Printf("opening file: %s\n", filePath)
// doguLogFile, err := SelectLogFile(filePath)
// if err != nil {
// return fmt.Errorf("failed to read logfile: %w", err)
// }
//
// defer doguLogFile.file.Close()
//
// createdFileInZip, err := ar.writer.Create(filePath)
// if err != nil {
// return fmt.Errorf("failed to create file in archive: %w", err)
// }
//
// if _, err := ar.fileCopier.copy(createdFileInZip, doguLogFile.file); err != nil {
// return fmt.Errorf("failed to copy file into archive: %w", err)
// }
//
// return nil
//}

0 comments on commit 3bd2b71

Please sign in to comment.