mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-29 16:56:40 +03:00
Use private where appropriate
This commit is contained in:
parent
0bf4480799
commit
a213254572
@ -46,9 +46,9 @@ class AppDelegateReducer {
|
||||
return StateActionPair(state: state, action: pair.action)
|
||||
}
|
||||
|
||||
fileprivate let baseServerUrl: URL
|
||||
private let baseServerUrl: URL
|
||||
|
||||
fileprivate func newMainWindow(with state: AppState,
|
||||
private func newMainWindow(with state: AppState,
|
||||
urls: [URL],
|
||||
cwd: URL,
|
||||
nvimArgs: [String]? = nil,
|
||||
@ -75,10 +75,10 @@ class AppDelegateReducer {
|
||||
return mainWindow
|
||||
}
|
||||
|
||||
fileprivate func frame(relativeTo refFrame: CGRect) -> CGRect {
|
||||
private func frame(relativeTo refFrame: CGRect) -> CGRect {
|
||||
return refFrame.offsetBy(dx: cascadeX, dy: -cascadeY)
|
||||
}
|
||||
}
|
||||
|
||||
fileprivate let cascadeX: CGFloat = 24.0
|
||||
fileprivate let cascadeY: CGFloat = 24.0
|
||||
private let cascadeX: CGFloat = 24.0
|
||||
private let cascadeY: CGFloat = 24.0
|
||||
|
@ -37,7 +37,7 @@ class AppearancePrefReducer {
|
||||
return StateActionPair(state: state, action: pair.action)
|
||||
}
|
||||
|
||||
fileprivate func modify(state: inout AppState, with appearance: AppearanceState) {
|
||||
private func modify(state: inout AppState, with appearance: AppearanceState) {
|
||||
state.mainWindowTemplate.appearance = appearance
|
||||
state.mainWindows.keys.forEach { state.mainWindows[$0]?.appearance = appearance }
|
||||
}
|
||||
|
@ -33,5 +33,5 @@ class HtmlPreviewToolReducer {
|
||||
return StateActionPair(state: UuidState(uuid: state.uuid, state: state), action: pair.action)
|
||||
}
|
||||
|
||||
fileprivate let baseServerUrl: URL
|
||||
private let baseServerUrl: URL
|
||||
}
|
||||
|
@ -126,5 +126,5 @@ class MarkdownReducer {
|
||||
self.baseServerUrl = baseServerUrl
|
||||
}
|
||||
|
||||
fileprivate let baseServerUrl: URL
|
||||
private let baseServerUrl: URL
|
||||
}
|
||||
|
@ -35,5 +35,5 @@ class PreviewToolReducer {
|
||||
return StateActionPair(state: UuidState(uuid: state.uuid, state: state), action: pair.action)
|
||||
}
|
||||
|
||||
fileprivate let baseServerUrl: URL
|
||||
private let baseServerUrl: URL
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ class UiRootReducer {
|
||||
isFullScreen: isFullScreen
|
||||
)
|
||||
|
||||
case let .frameChanged(to: frame):
|
||||
case let .frameChanged(to:frame):
|
||||
if uuid == appState.currentMainWindowUuid {
|
||||
appState.mainWindowTemplate.frame = frame
|
||||
}
|
||||
@ -59,9 +59,9 @@ class UiRootReducer {
|
||||
return StateActionPair(state: appState, action: pair.action)
|
||||
}
|
||||
|
||||
fileprivate func mainWindowTemplate(from old: MainWindow.State,
|
||||
new: MainWindow.State,
|
||||
isFullScreen: Bool) -> MainWindow.State {
|
||||
private func mainWindowTemplate(from old: MainWindow.State,
|
||||
new: MainWindow.State,
|
||||
isFullScreen: Bool) -> MainWindow.State {
|
||||
|
||||
var result = old
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user