Skip to content

Commit 3611f33

Browse files
committed
Remove unused saveBytesToAcquisition function
1 parent 2c13a5c commit 3611f33

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

modules/modules.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,6 @@ func saveStringToAcquisition(acq *acquisition.Acquisition, filename, content str
8686
return saveCommandOutput(filePath, content)
8787
}
8888

89-
// saveBytesToAcquisition saves byte content to either encrypted stream or file
90-
func saveBytesToAcquisition(acq *acquisition.Acquisition, filename string, content []byte) error {
91-
if acq.StreamingMode && acq.EncryptedWriter != nil {
92-
return acq.EncryptedWriter.CreateFileFromBytes(filename, content)
93-
}
94-
95-
// Fall back to traditional file saving
96-
filePath := filepath.Join(acq.StoragePath, filename)
97-
return os.WriteFile(filePath, content, 0644)
98-
}
99-
10089
// saveDataToStream saves JSON data to encrypted zip stream
10190
func saveDataToStream(writer *acquisition.EncryptedZipWriter, filename string, data any) error {
10291
jsonData, err := json.MarshalIndent(&data, "", " ")

0 commit comments

Comments
 (0)