Mac OSX Launcher: Removing unused/change-in-plans files

This commit is contained in:
meeh
2018-09-30 09:37:51 +00:00
parent ae0d420f5f
commit 36b758f2c0
2 changed files with 0 additions and 65 deletions

View File

@@ -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
}
}
}

View File

@@ -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"
]
}