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 sliderDatePicker: NSDatePicker!
@IBOutlet var debugVersionView: NSView!
@IBOutlet var modernSlider: NSCollectionView! @IBOutlet var modernSlider: NSCollectionView!
var defaultPreferences: [Data] { var defaultPreferences: [Data] {
@ -167,8 +165,6 @@ class ParentPanelController: NSWindowController {
name: NSNotification.Name.NSSystemTimeZoneDidChange, name: NSNotification.Name.NSSystemTimeZoneDidChange,
object: nil) object: nil)
showDebugVersionViewIfNeccesary()
#if DEBUG #if DEBUG
if #available(OSX 11.0, *) { if #available(OSX 11.0, *) {
mainTableView.style = .fullWidth 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() { @objc func timezoneGonnaChange() {
OperationQueue.main.addOperation { OperationQueue.main.addOperation {
/* /*

Loading…
Cancel
Save