From 0df6c81a1c4cb41367d49ce74847431a8ccf55a7 Mon Sep 17 00:00:00 2001
From: KotaKato <peony.btn@gmail.com>
Date: Sat, 5 Dec 2020 15:11:48 +0900
Subject: [PATCH] delete swift file

---
 autoload/colorschemes_settings.swift | 34 ----------------------------
 1 file changed, 34 deletions(-)
 delete mode 100644 autoload/colorschemes_settings.swift

diff --git a/autoload/colorschemes_settings.swift b/autoload/colorschemes_settings.swift
deleted file mode 100644
index 31aa74d..0000000
--- a/autoload/colorschemes_settings.swift
+++ /dev/null
@@ -1,34 +0,0 @@
-// ============================================================================
-// Filename: autoload/colorschemes_settings.swift
-// Author: KotaKato
-// License: MIT License
-// ============================================================================
-// reference : https://stackoverflow.com/questions/59277634/
-import Foundation
-import Cocoa
-
-class ObserveColorMode {
-    func observe() {
-        DistributedNotificationCenter.default.addObserver(
-            forName: Notification.Name("AppleInterfaceThemeChangedNotification"),
-            object: nil,
-            queue: nil,
-            using: self.interfaceModeChanged
-        )
-    }
-    func interfaceModeChanged(_ notification: Notification) {
-        print(UserDefaults.standard.string(forKey: "AppleInterfaceStyle") ?? "Light")
-    }
-}
-
-let app = NSApplication.shared
-class AppDelegate: NSObject, NSApplicationDelegate {
-    func applicationDidFinishLaunching(_ notification: Notification) {
-        let observer = ObserveColorMode.init()
-        observer.observe()
-    }
-}
-
-let delegate = AppDelegate()
-app.delegate = delegate
-app.run()