Browse Source

Remove unused debug version view!

pull/92/head
Abhishek 4 years ago
parent
commit
b9a521bd24
  1. 17
      Clocker/Panel/ParentPanelController.swift

17
Clocker/Panel/ParentPanelController.swift

@ -81,8 +81,6 @@ class ParentPanelController: NSWindowController {
@IBOutlet var sliderDatePicker: NSDatePicker!
@IBOutlet var debugVersionView: NSView!
@IBOutlet var modernSlider: NSCollectionView!
var defaultPreferences: [Data] {
@ -167,8 +165,6 @@ class ParentPanelController: NSWindowController {
name: NSNotification.Name.NSSystemTimeZoneDidChange,
object: nil)
showDebugVersionViewIfNeccesary()
#if DEBUG
if #available(OSX 11.0, *) {
mainTableView.style = .fullWidth
@ -181,19 +177,6 @@ class ParentPanelController: NSWindowController {
}
}
private func showDebugVersionViewIfNeccesary() {
if debugVersionView != nil {
debugVersionView.wantsLayer = true
debugVersionView.layer?.backgroundColor = NSColor.systemRed.cgColor
}
#if RELEASE
if debugVersionView != nil, stackView.arrangedSubviews.contains(debugVersionView) {
stackView.removeView(debugVersionView)
}
#endif
}
@objc func timezoneGonnaChange() {
OperationQueue.main.addOperation {
/*

Loading…
Cancel
Save