1
1
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:
Tae Won Ha 2017-12-17 20:58:16 +01:00
parent 0bf4480799
commit a213254572
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
6 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -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 }
}

View File

@ -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
}

View File

@ -126,5 +126,5 @@ class MarkdownReducer {
self.baseServerUrl = baseServerUrl
}
fileprivate let baseServerUrl: URL
private let baseServerUrl: URL
}

View File

@ -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
}

View File

@ -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