author | Barret Rennie <barret@brennie.ca> |
Wed, 09 Dec 2020 05:48:48 +0000 | |
changeset 559950 | d61d3d7f909cddacfea26114c2d46999bb80564a |
parent 559949 | 9eb31bf4bcb4a85f6d54bd8a6c12dc9c36da5dd1 |
child 559951 | 6cc33208cf323ec422d39d534e268e3229bd42a5 |
push id | 132359 |
push user | brennie@mozilla.com |
push date | Wed, 09 Dec 2020 05:56:04 +0000 |
treeherder | autoland@6cc33208cf32 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | Gijs |
bugs | 1677000, 1665172 |
milestone | 85.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/dom/system/IOUtils.h +++ b/dom/system/IOUtils.h @@ -215,30 +215,16 @@ class IOUtils final { * @return The number of bytes written to the file, or an error if the write * failed or was incomplete. */ static Result<uint32_t, IOError> WriteUTF8Sync( nsIFile* aFile, const nsCString& aUTF8String, const InternalWriteOpts& aOptions); /** - * Attempts to write |aBytes| to the file pointed by |aFd|. - * - * @param aFd An open PRFileDesc for the destination file to be - * overwritten. - * @param aFile The location of the file. - * @param aBytes The data to write to the file. - * - * @return The number of bytes written to the file, or an error if the write - * failed or was incomplete. - */ - static Result<uint32_t, IOError> WriteSync(PRFileDesc* aFd, nsIFile* aFile, - const Span<const uint8_t>& aBytes); - - /** * Attempts to move the file located at |aSourceFile| to |aDestFile|. * * @param aSourceFile The location of the file to move. * @param aDestFile The destination for the file. * @param noOverWrite If true, abort with an error if a file already exists at * |aDestFile|. Otherwise, the file will be overwritten by * the move. *