Skip to content

Commit

Permalink
fix: remove unnecessary/wrong layout code
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Mar 10, 2020
1 parent 1bb4d2a commit 9e719e6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/api-wrappers/HelperExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,6 @@ extension NSView {
}
}

extension NSGridView {
// set height for all rows
func setRowsHeight(_ height: CGFloat) {
for i in 0..<numberOfRows {
row(at: i).height = height
}
}
}

extension Array {
// forEach with each iteration run concurrently on the global queue
func forEachAsync(fn: @escaping (Element) -> Void) {
Expand Down
1 change: 0 additions & 1 deletion src/ui/preferences-window/tabs/AppearanceTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class AppearanceTab {
])
view.column(at: 0).xPlacement = .trailing
view.rowAlignment = .lastBaseline
view.setRowsHeight(rowHeight)
view.fit()
return view
}
Expand Down
1 change: 0 additions & 1 deletion src/ui/preferences-window/tabs/GeneralTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class GeneralTab {
])
view.column(at: 0).xPlacement = .trailing
view.rowAlignment = .lastBaseline
view.setRowsHeight(rowHeight)
view.fit()
setLoginItemIfCheckboxIsOn(startAtLogin[1] as! NSButton)
return view
Expand Down

0 comments on commit 9e719e6

Please sign in to comment.