Skip to content

Commit

Permalink
Remove useless view controller and code cleanning
Browse files Browse the repository at this point in the history
  • Loading branch information
guidouil committed Nov 29, 2016
1 parent 9840a61 commit 247ca0a
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 43 deletions.
4 changes: 0 additions & 4 deletions TouchBarBar.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/* Begin PBXBuildFile section */
1968E2811DC2E22100422BFE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1968E2801DC2E22100422BFE /* AppDelegate.swift */; };
1968E2831DC2E22100422BFE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1968E2821DC2E22100422BFE /* ViewController.swift */; };
1968E2851DC2E22100422BFE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1968E2841DC2E22100422BFE /* Assets.xcassets */; };
1968E2881DC2E22100422BFE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1968E2861DC2E22100422BFE /* Main.storyboard */; };
1968E29E1DC2E71000422BFE /* WindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1968E29D1DC2E71000422BFE /* WindowController.swift */; };
Expand All @@ -31,7 +30,6 @@
/* Begin PBXFileReference section */
1968E27D1DC2E22100422BFE /* TouchBarBar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TouchBarBar.app; sourceTree = BUILT_PRODUCTS_DIR; };
1968E2801DC2E22100422BFE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
1968E2821DC2E22100422BFE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
1968E2841DC2E22100422BFE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
1968E2871DC2E22100422BFE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
1968E2891DC2E22100422BFE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -84,7 +82,6 @@
A4936DAE1DED8F5900B4FE0D /* Bar */,
1968E2801DC2E22100422BFE /* AppDelegate.swift */,
1968E29D1DC2E71000422BFE /* WindowController.swift */,
1968E2821DC2E22100422BFE /* ViewController.swift */,
1968E2841DC2E22100422BFE /* Assets.xcassets */,
1968E2861DC2E22100422BFE /* Main.storyboard */,
1968E2891DC2E22100422BFE /* Info.plist */,
Expand Down Expand Up @@ -210,7 +207,6 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1968E2831DC2E22100422BFE /* ViewController.swift in Sources */,
1968E29E1DC2E71000422BFE /* WindowController.swift in Sources */,
1968E2811DC2E22100422BFE /* AppDelegate.swift in Sources */,
);
Expand Down
Binary file not shown.
7 changes: 1 addition & 6 deletions TouchBarBar/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// AppDelegate.swift
// TouchFart
// TouchBarBar
//
// Created by Guidouil on 10/29/16.
// Copyright © 2016 Guidouil. All rights reserved.
Expand All @@ -11,16 +11,11 @@ import Cocoa
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {



func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
}

func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
}


}

2 changes: 1 addition & 1 deletion TouchBarBar/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@
<!--View Controller-->
<scene sceneID="hIz-AP-VOD">
<objects>
<viewController id="XfG-lQ-9wD" customClass="ViewController" customModule="TouchBarBar" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="XfG-lQ-9wD" sceneMemberID="viewController">
<view key="view" wantsLayer="YES" id="m2S-Jp-Qdl">
<rect key="frame" x="0.0" y="0.0" width="366" height="298"/>
<autoresizingMask key="autoresizingMask"/>
Expand Down
28 changes: 0 additions & 28 deletions TouchBarBar/ViewController.swift

This file was deleted.

5 changes: 1 addition & 4 deletions TouchBarBar/WindowController.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// WindowController.swift
// TouchFart
// TouchBarBar
//
// Created by Guidouil on 10/29/16.
// Copyright © 2016 Guidouil. All rights reserved.
Expand All @@ -23,7 +23,6 @@ fileprivate extension NSTouchBarItemIdentifier {
}



class WindowController: NSWindowController, NSTouchBarDelegate {

override func windowDidLoad() {
Expand Down Expand Up @@ -83,6 +82,4 @@ class WindowController: NSWindowController, NSTouchBarDelegate {

}
}


}

0 comments on commit 247ca0a

Please sign in to comment.