Skip to content

Commit 24b8c80

Browse files
committed
Delete useless code
1 parent 92acfd0 commit 24b8c80

File tree

4 files changed

+54
-17
lines changed

4 files changed

+54
-17
lines changed

POP Translator.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
FCF5AD6822000026004609F7 /* NSStoryboard.Name + Identifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCF5AD6722000026004609F7 /* NSStoryboard.Name + Identifier.swift */; };
3030
FCF5AD6A2200005D004609F7 /* NSObject + reuseIdentifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCF5AD692200005D004609F7 /* NSObject + reuseIdentifier.swift */; };
3131
FCF5AD6C220003F2004609F7 /* NSViewController + create.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCF5AD6B220003F2004609F7 /* NSViewController + create.swift */; };
32+
FCF5AD6E220004AE004609F7 /* LicenseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCF5AD6D220004AE004609F7 /* LicenseViewController.swift */; };
3233
/* End PBXBuildFile section */
3334

3435
/* Begin PBXCopyFilesBuildPhase section */
@@ -77,6 +78,7 @@
7778
FCF5AD6722000026004609F7 /* NSStoryboard.Name + Identifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NSStoryboard.Name + Identifier.swift"; sourceTree = "<group>"; };
7879
FCF5AD692200005D004609F7 /* NSObject + reuseIdentifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NSObject + reuseIdentifier.swift"; sourceTree = "<group>"; };
7980
FCF5AD6B220003F2004609F7 /* NSViewController + create.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NSViewController + create.swift"; sourceTree = "<group>"; };
81+
FCF5AD6D220004AE004609F7 /* LicenseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LicenseViewController.swift; sourceTree = "<group>"; };
8082
/* End PBXFileReference section */
8183

8284
/* Begin PBXFrameworksBuildPhase section */
@@ -146,6 +148,7 @@
146148
children = (
147149
FC1D978821F158E900766E3D /* PopOverManageController.swift */,
148150
FC1D978921F158EA00766E3D /* MainViewController.swift */,
151+
FCF5AD6D220004AE004609F7 /* LicenseViewController.swift */,
149152
);
150153
path = Controller;
151154
sourceTree = "<group>";
@@ -408,6 +411,7 @@
408411
FC1D978C21F158EA00766E3D /* MainViewController.swift in Sources */,
409412
8D0C753D21F27CAA00EA6515 /* UserDefaults + Key.swift in Sources */,
410413
FC1D978F21F160DA00766E3D /* Translator.swift in Sources */,
414+
FCF5AD6E220004AE004609F7 /* LicenseViewController.swift in Sources */,
411415
FCF5AD6421FFF5EB004609F7 /* Bundel + Identifier.swift in Sources */,
412416
);
413417
runOnlyForDeploymentPostprocessing = 0;

POP Translator/Base.lproj/Main.storyboard

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,38 @@
771771
</objects>
772772
<point key="canvasLocation" x="75" y="358"/>
773773
</scene>
774+
<!--Window Controller-->
775+
<scene sceneID="fQ5-ZR-jtQ">
776+
<objects>
777+
<windowController id="ow3-Hd-qE2" sceneMemberID="viewController">
778+
<window key="window" title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="CY6-wH-sLR">
779+
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
780+
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
781+
<rect key="contentRect" x="245" y="301" width="480" height="270"/>
782+
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
783+
<connections>
784+
<outlet property="delegate" destination="ow3-Hd-qE2" id="KDF-hM-HFL"/>
785+
</connections>
786+
</window>
787+
<connections>
788+
<segue destination="uaj-py-C3Y" kind="relationship" relationship="window.shadowedContentViewController" id="gnX-cf-Yc6"/>
789+
</connections>
790+
</windowController>
791+
<customObject id="Kqp-JJ-g5G" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
792+
</objects>
793+
</scene>
794+
<!--View Controller-->
795+
<scene sceneID="OUC-0Q-kAU">
796+
<objects>
797+
<viewController id="uaj-py-C3Y" sceneMemberID="viewController">
798+
<view key="view" id="ioc-5S-PND">
799+
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
800+
<autoresizingMask key="autoresizingMask"/>
801+
</view>
802+
</viewController>
803+
<customObject id="t6e-TX-SZ4" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
804+
</objects>
805+
</scene>
774806
</scenes>
775807
<resources>
776808
<image name="MoreImage" width="30" height="30"/>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// LicenseViewController.swift
3+
// POP Translator
4+
//
5+
// Created by 이광용 on 28/01/2019.
6+
// Copyright © 2019 GY. All rights reserved.
7+
//
8+
9+
import Cocoa
10+
11+
class LicenseViewController: NSViewController {
12+
13+
override func viewDidLoad() {
14+
super.viewDidLoad()
15+
// Do view setup here.
16+
}
17+
18+
}

POP Translator/Controller/MainViewController.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -160,20 +160,3 @@ extension MainViewController: WKUIDelegate {
160160
extension MainViewController: WKNavigationDelegate {
161161

162162
}
163-
164-
extension MainViewController {
165-
// MARK: Storyboard instantiation
166-
static func freshController() -> MainViewController {
167-
//1.
168-
169-
let storyboard = NSStoryboard(name: NSStoryboard.Name("Main"), bundle: nil)
170-
//2.
171-
172-
let identifier = NSStoryboard.SceneIdentifier("QuotesViewController")
173-
//3.
174-
guard let viewcontroller = storyboard.instantiateController(withIdentifier: identifier) as? MainViewController else {
175-
fatalError("Why cant i find QuotesViewController? - Check Main.storyboard")
176-
}
177-
return viewcontroller
178-
}
179-
}

0 commit comments

Comments
 (0)