Remove accidentally public functions.

These can't be new API as they haven't been reviewed.
This commit is contained in:
Alastair Houghton committed 2024-05-13 11:19:43 +01:00
1 parent aac7f54e89
commit 8e09ede76d
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
import WinSDK
extension Errno {
public init(windowsError: DWORD) {
internal init(windowsError: DWORD) {
self.init(rawValue: _mapWindowsErrorToErrno(windowsError))
}
}
+2 -2
View File
@@ -516,7 +516,7 @@ extension FilePermissions {
/// files or directories. Note that this mask is process-wide, and that
/// *getting* it is not thread safe.
@_alwaysEmitIntoClient
public static var creationMask: FilePermissions {
internal static var creationMask: FilePermissions {
get {
let oldMask = _umask(0o22)
_ = _umask(oldMask)
@@ -536,7 +536,7 @@ extension FilePermissions {
/// This is more efficient than reading `creationMask` and restoring it
/// afterwards, because of the way reading the creation mask works.
@_alwaysEmitIntoClient
public static func withCreationMask<R>(
internal static func withCreationMask<R>(
_ permissions: FilePermissions,
body: () throws -> R
) rethrows -> R {
+1 -1
View File
@@ -18,7 +18,7 @@
/// Creates a temporary directory with a name based on the given `basename`,
/// executes `body`, passing in the path of the created directory, then
/// deletes the directory and all of its contents before returning.
public func withTemporaryFilePath<R>(
internal func withTemporaryFilePath<R>(
basename: FilePath.Component,
_ body: (FilePath) throws -> R
) throws -> R {