diff --git a/launchers/macosx/I2PLauncher/Utils/EventMonitor.swift b/launchers/macosx/I2PLauncher/Utils/EventMonitor.swift deleted file mode 100644 index 008e0e44e..000000000 --- a/launchers/macosx/I2PLauncher/Utils/EventMonitor.swift +++ /dev/null @@ -1,37 +0,0 @@ -// -// EventMonitor.swift -// I2PLauncher -// -// Created by Mikal Villa on 02/09/2018. -// Copyright © 2018 The I2P Project. All rights reserved. -// - -import Foundation -import Cocoa - -public class EventMonitor { - private var monitor: Any? - private let mask: NSEvent.EventTypeMask - private let handler: (NSEvent?) -> Void - - public init(mask: NSEvent.EventTypeMask, handler: @escaping (NSEvent?) -> Void) { - self.mask = mask - self.handler = handler - } - - deinit { - stop() - } - - public func start() { - monitor = NSEvent.addGlobalMonitorForEvents(matching: mask, handler: handler) - } - - public func stop() { - if monitor != nil { - NSEvent.removeMonitor(monitor!) - monitor = nil - } - } -} - diff --git a/launchers/macosx/I2PLauncher/routermgmt/RouterDeployer.swift b/launchers/macosx/I2PLauncher/routermgmt/RouterDeployer.swift deleted file mode 100644 index 31e407ae3..000000000 --- a/launchers/macosx/I2PLauncher/routermgmt/RouterDeployer.swift +++ /dev/null @@ -1,28 +0,0 @@ -// -// RouterDeployer.swift -// I2PLauncher -// -// Created by Mikal Villa on 18/09/2018. -// Copyright © 2018 The I2P Project. All rights reserved. -// - -import Foundation - -class RouterDeployer: NSObject, I2PSubprocess { - var subprocessPath: String? - var timeWhenStarted: Date? - - var arguments: String? - - func findJava() { - // - } - - let javaBinaryPath = RouterProcessStatus.knownJavaBinPath - - let defaultFlagsForExtractorJob:[String] = [ - "-Xmx512M", - "-Xms128m", - "-Djava.awt.headless=true" - ] -}