From d8d55a6cc8d745c946f7197b1082ec823c610fd4 Mon Sep 17 00:00:00 2001 From: igor Date: Sat, 4 Jan 2025 22:19:24 -0800 Subject: [PATCH] Some clean up. --- src/EditableNSTextField.swift | 1 - src/Makefile | 6 ++---- src/SearchViewController.swift | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/EditableNSTextField.swift b/src/EditableNSTextField.swift index 58d47c5..0a5c172 100644 --- a/src/EditableNSTextField.swift +++ b/src/EditableNSTextField.swift @@ -1,5 +1,4 @@ import Cocoa -import os final class EditableNSTextField: NSTextField { private let commandKey = NSEvent.ModifierFlags.command.rawValue diff --git a/src/Makefile b/src/Makefile index 4040591..d70268a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -28,15 +28,13 @@ FRAMEWORKS = -framework AppKit -framework ServiceManagement ./arm64/%.o: %.swift swift -frontend -c -target arm64-apple-macos$(MACOS_VERSION) $(FLAGS) \ -primary-file $< $(filter-out $<, $(SRCMODULES)) $(LIBS) $(FRAMEWORKS) -sdk $(SDK) \ - -module-name $(EXEC) -o $@ -emit-module - @touch $@ + -module-name $(EXEC) -o $@ -emit-module && touch $@ ifdef UNIVERSAL ./x86_64/%.o: %.swift @swift -frontend -c -target x86_64-apple-macos$(MACOS_VERSION) \ $(FLAGS) -primary-file $< $(filter-out $<, $(SRCMODULES)) $(LIBS) $(FRAMEWORKS) \ - -sdk $(SDK) -module-name $(EXEC) -o $@ -emit-module - @touch $@ + -sdk $(SDK) -module-name $(EXEC) -o $@ -emit-module && touch $@ endif ./arm64/$(EXEC): $(ARMOBJMODULES) diff --git a/src/SearchViewController.swift b/src/SearchViewController.swift index 3e41594..5431848 100644 --- a/src/SearchViewController.swift +++ b/src/SearchViewController.swift @@ -114,7 +114,6 @@ class SearchViewController: NSViewController, NSTextFieldDelegate, constant: ViewConstants.spacing10), programsLabel.trailingAnchor.constraint( equalTo: searchInput.trailingAnchor), - ]) }