Skip to content

Commit

Permalink
Remove function
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Jan 31, 2024
1 parent 9751b73 commit 8dfc552
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions Sources/AppState/Application/Application+public.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1015,24 +1015,6 @@ public extension Application {
fileState.reset()
}

/// Removes the value from `FileManager` and resets the value to the inital value.
@available(*, deprecated, renamed: "reset")
static func remove<Value>(
fileState keyPath: KeyPath<Application, FileState<Value>>,
_ fileID: StaticString = #fileID,
_ function: StaticString = #function,
_ line: Int = #line,
_ column: Int = #column
) {
reset(
fileState: keyPath,
fileID,
function,
line,
column
)
}

/**
Retrieves a stored state from Application instance using the provided keypath.

Expand Down Expand Up @@ -1066,7 +1048,7 @@ public extension Application {
- initial: The closure that returns initial state value.
- path: The path to the directory containing the file. The default is `FileManager.defaultFileStatePath`.
- filename: The name of the file to read.
- isBase64Encoded: Boolean to determine if the value should be encoded as Base64. The default is `true`.
- isBase64Encoded: Boolean to determine if the value should be encoded as Base64. The default is `true`.
- Returns: The state of type `Value`.
*/
func fileState<Value>(
Expand Down

0 comments on commit 8dfc552

Please sign in to comment.