Skip to content

Commit

Permalink
Removing flush requirement until its used (will most likely make a co…
Browse files Browse the repository at this point in the history
…meback).
  • Loading branch information
tonystone committed Jan 23, 2019
1 parent cb1e476 commit 19227ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions Sources/TraceLog/Utilities/Streams/FileOutputStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,6 @@ extension FileOutputStream: OutputStream {

return .success(written)
}

func flush() {
fsync(self.fd)
}
}

// Private extension to work around Swifts confusion around similar function names.
Expand Down
5 changes: 0 additions & 5 deletions Sources/TraceLog/Utilities/Streams/OutputStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ internal protocol OutputStream {
/// - Returns: A Result<Int, OutputStreamError> value holding the number of bytes written if .successful or an OutputStreamError if failed.
///
func write(_ bytes: [UInt8]) -> Result<Int, OutputStreamError>

/// If there is buffering for this stream, flush the
/// buffer to disk.
///
func flush()
}

/// Errors returned by OutputStreams
Expand Down

0 comments on commit 19227ec

Please sign in to comment.