Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabobko committed Sep 13, 2023
1 parent ecdb76d commit d52289e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions AeroSpace.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
B0D0C37BAE7E7F0D0FF1E9FC /* GlobalObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3C2E5977331398421A4FC168 /* GlobalObserver.swift */; };
B1E2002BB8F70F2555AAA82D /* TreeNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = D295CA45172ADBDB1E4DF708 /* TreeNode.swift */; };
B3702BB393A9B03CCAE4C60E /* refresh.swift in Sources */ = {isa = PBXBuildFile; fileRef = 526B113159987FA43EA41120 /* refresh.swift */; };
C0A88261ECF505FC5648FC0A /* OptionalEx.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9EDFD4A9F45182CA6E0BD7B /* OptionalEx.swift */; };
D4F68F33C6E354856C80E729 /* ConfigModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6C3C4DD77B74C92C8C01E39 /* ConfigModel.swift */; };
E2F0C6DCC51CC7685FEF712E /* Command.swift in Sources */ = {isa = PBXBuildFile; fileRef = F73A72D792FC2A0B6B5CAD04 /* Command.swift */; };
E2FD8E2B2D2BE6B88BF8E8AD /* accessibility.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE605CF46DE6377C69B9D49D /* accessibility.swift */; };
Expand All @@ -57,7 +56,6 @@
6935AF0A2DB3D186D1C6218F /* NSWorkspaceEx.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSWorkspaceEx.swift; sourceTree = "<group>"; };
7E6F3930E3BF5D8196A20E9B /* axObservers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = axObservers.swift; sourceTree = "<group>"; };
883D7F7F87FBE7D0BDE4E87F /* ArrayEx.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ArrayEx.swift; sourceTree = "<group>"; };
A9EDFD4A9F45182CA6E0BD7B /* OptionalEx.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OptionalEx.swift; sourceTree = "<group>"; };
AAE5DCAEC5EE619CE33859E7 /* SequenceEx.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SequenceEx.swift; sourceTree = "<group>"; };
AF3BB3DD434C75536217CB88 /* NSScreenEx.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSScreenEx.swift; sourceTree = "<group>"; };
BA7CD89E786588324DFB5575 /* defaultConfig.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = defaultConfig.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -166,7 +164,6 @@
F6507EBAA795220FD0C05384 /* Monitor.swift */,
AF3BB3DD434C75536217CB88 /* NSScreenEx.swift */,
6935AF0A2DB3D186D1C6218F /* NSWorkspaceEx.swift */,
A9EDFD4A9F45182CA6E0BD7B /* OptionalEx.swift */,
28B788A95DD3C267878E05B5 /* Rect.swift */,
AAE5DCAEC5EE619CE33859E7 /* SequenceEx.swift */,
BD02433B4415EEB163074CE5 /* utils.swift */,
Expand Down Expand Up @@ -262,7 +259,6 @@
920FDF8498DCCB62149D1719 /* Monitor.swift in Sources */,
115F5CA4BEB80B645E66D198 /* NSScreenEx.swift in Sources */,
A4F66097ADF0FD58C6B715AE /* NSWorkspaceEx.swift in Sources */,
C0A88261ECF505FC5648FC0A /* OptionalEx.swift in Sources */,
78EE0CEF814ABDBA67941B84 /* Rect.swift in Sources */,
AE76A183D0454E4C8ADCE380 /* SequenceEx.swift in Sources */,
783B0B965BA45D7A2943F7BF /* TilingContainer.swift in Sources */,
Expand Down
3 changes: 1 addition & 2 deletions src/axWrappers/MacWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ class MacWindow: TreeNode, Hashable {
parent = workspace
weight = FLOATING_ADAPTIVE_WEIGHT
} else {
let tilingParent = (workspace.lastActiveWindow?.parent).filterIsInstance(of: TilingContainer.self)
?? workspace.rootTilingContainer
let tilingParent = workspace.lastActiveWindow?.parent as? TilingContainer ?? workspace.rootTilingContainer
parent = tilingParent
weight = parent.children.sumOf { $0.getWeight(tilingParent.orientation) }
.div(parent.children.count) ?? 1
Expand Down
5 changes: 0 additions & 5 deletions src/util/OptionalEx.swift

This file was deleted.

0 comments on commit d52289e

Please sign in to comment.