Skip to content

Commit

Permalink
Remove LegacyItem (#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Jan 3, 2025
1 parent 595f8ac commit 4b66a75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
16 changes: 4 additions & 12 deletions deltachat-ios.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
D8083AD12D143868005DCB7D /* UserDefaults+Widgets.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8083ACF2D14384F005DCB7D /* UserDefaults+Widgets.swift */; };
D80F62792B59D1CC00877059 /* DefaultReactions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D80F62782B59D1CC00877059 /* DefaultReactions.swift */; };
D82AD24D2D27E47A009D6026 /* UIApplication+Orientation.swift in Sources */ = {isa = PBXBuildFile; fileRef = D82AD24C2D27E47A009D6026 /* UIApplication+Orientation.swift */; };
D84738D22BBC1C2C00ECD52B /* LegacyMenuItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = D84738D12BBC1C2C00ECD52B /* LegacyMenuItem.swift */; };
D84738D22BBC1C2C00ECD52B /* UIAction+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = D84738D12BBC1C2C00ECD52B /* UIAction+Extension.swift */; };
D84AED242B55E8EB00D753F6 /* ReactionsOverviewViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D84AED232B55E8EB00D753F6 /* ReactionsOverviewViewController.swift */; };
D84AED272B566C0700D753F6 /* ReactionsOverviewTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D84AED262B566C0700D753F6 /* ReactionsOverviewTableViewCell.swift */; };
D85DF9782C4A96CB00A01408 /* UserDefaults+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D85DF9772C4A96CB00A01408 /* UserDefaults+Extensions.swift */; };
Expand Down Expand Up @@ -634,7 +634,7 @@
D8083ACF2D14384F005DCB7D /* UserDefaults+Widgets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UserDefaults+Widgets.swift"; sourceTree = "<group>"; };
D80F62782B59D1CC00877059 /* DefaultReactions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DefaultReactions.swift; sourceTree = "<group>"; };
D82AD24C2D27E47A009D6026 /* UIApplication+Orientation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIApplication+Orientation.swift"; sourceTree = "<group>"; };
D84738D12BBC1C2C00ECD52B /* LegacyMenuItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LegacyMenuItem.swift; sourceTree = "<group>"; };
D84738D12BBC1C2C00ECD52B /* UIAction+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIAction+Extension.swift"; sourceTree = "<group>"; };
D84AED232B55E8EB00D753F6 /* ReactionsOverviewViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReactionsOverviewViewController.swift; sourceTree = "<group>"; };
D84AED262B566C0700D753F6 /* ReactionsOverviewTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReactionsOverviewTableViewCell.swift; sourceTree = "<group>"; };
D85DF9772C4A96CB00A01408 /* UserDefaults+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UserDefaults+Extensions.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -762,6 +762,7 @@
isa = PBXGroup;
children = (
AEE56D7F225504DB007DC082 /* Extensions.swift */,
D84738D12BBC1C2C00ECD52B /* UIAction+Extension.swift */,
78E45E4321D3F14A00D4B15E /* UIImage+Extension.swift */,
305961832346125000C80F33 /* UIEdgeInsets+Extensions.swift */,
305961862346125000C80F33 /* NSAttributedString+Extensions.swift */,
Expand Down Expand Up @@ -1099,7 +1100,6 @@
AE851AC2227C695000ED86F0 /* Helper */ = {
isa = PBXGroup;
children = (
D84738D02BBC1C2000ECD52B /* Menu */,
30238CFE28A5554C00EF14AC /* FileHelper.swift */,
3067AAC52667F3FE00525036 /* ImageFormat.swift */,
305702A024C6453700D84EFC /* TypeAlias.swift */,
Expand Down Expand Up @@ -1209,14 +1209,6 @@
path = "Send Reaction";
sourceTree = "<group>";
};
D84738D02BBC1C2000ECD52B /* Menu */ = {
isa = PBXGroup;
children = (
D84738D12BBC1C2C00ECD52B /* LegacyMenuItem.swift */,
);
path = Menu;
sourceTree = "<group>";
};
D84AED252B566BF700D753F6 /* Reactions */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -1714,7 +1706,7 @@
78ED838321D5379000243125 /* TextFieldCell.swift in Sources */,
305702A124C6453700D84EFC /* TypeAlias.swift in Sources */,
AE19887523EB264000B4CD5F /* HelpViewController.swift in Sources */,
D84738D22BBC1C2C00ECD52B /* LegacyMenuItem.swift in Sources */,
D84738D22BBC1C2C00ECD52B /* UIAction+Extension.swift in Sources */,
AE0D26FD1FB1FE88002FAFCE /* ChatListViewController.swift in Sources */,
30C7D5EC28F47E620078D24C /* InitialsBadge.swift in Sources */,
D8CDEFE02C087CDA00146773 /* ContactCardCell.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
import UIKit

@available(*, deprecated)
class LegacyMenuItem: UIMenuItem {
var indexPath: IndexPath?

convenience init(title: String, action: Selector, indexPath: IndexPath?) {
self.init(title: title, action: action)

self.indexPath = indexPath
}
}

extension UIAction {
static func menuAction(localizationKey: String, attributes: UIAction.Attributes = [], systemImageName: String, indexPath: IndexPath, action: @escaping (IndexPath) -> Void) -> UIAction {
return menuAction(localizationKey: localizationKey, attributes: attributes, image: UIImage(systemName: systemImageName), indexPath: indexPath, action: action)
Expand Down

0 comments on commit 4b66a75

Please sign in to comment.