forked from shadowfacts/Tusker
Remove old code
This commit is contained in:
parent
f4b0b9b70a
commit
ad0bbe0ab2
|
@ -60,23 +60,6 @@ class ConversationTableViewController: EnhancedTableViewController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override var previewActionItems: [UIPreviewActionItem] {
|
|
||||||
var actions = [UIPreviewActionItem]()
|
|
||||||
if let status = MastodonCache.status(for: mainStatusID),
|
|
||||||
let url = status.url {
|
|
||||||
actions.append(UIPreviewAction(title: "Open in Safari", style: .default, handler: { (_, _) in
|
|
||||||
let vc = SFSafariViewController(url: url)
|
|
||||||
UIApplication.shared.delegate!.window!!.rootViewController!.present(vc, animated: true)
|
|
||||||
// TODO: kill this ^ with fire
|
|
||||||
}))
|
|
||||||
actions.append(UIPreviewAction(title: "Share", style: .default, handler: { (_, _) in
|
|
||||||
let vc = UIActivityViewController(activityItems: [url], applicationActivities: nil)
|
|
||||||
UIApplication.shared.delegate!.window!!.rootViewController!.present(vc, animated: true)
|
|
||||||
}))
|
|
||||||
}
|
|
||||||
return actions
|
|
||||||
}
|
|
||||||
|
|
||||||
func getDirectParents(of status: Status, from statuses: [Status]) -> [Status] {
|
func getDirectParents(of status: Status, from statuses: [Status]) -> [Status] {
|
||||||
var statuses = statuses
|
var statuses = statuses
|
||||||
var parents: [Status] = []
|
var parents: [Status] = []
|
||||||
|
|
|
@ -93,26 +93,6 @@ class ProfileTableViewController: EnhancedTableViewController {
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(updateUIForPreferences), name: .preferencesChanged, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(updateUIForPreferences), name: .preferencesChanged, object: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
override var previewActionItems: [UIPreviewActionItem] {
|
|
||||||
var actions = [UIPreviewActionItem]()
|
|
||||||
if let account = MastodonCache.account(for: accountID) {
|
|
||||||
actions.append(UIPreviewAction(title: "Open in Safari", style: .default, handler: { (_, _) in
|
|
||||||
let vc = SFSafariViewController(url: account.url)
|
|
||||||
UIApplication.shared.delegate!.window!!.rootViewController!.present(vc, animated: true)
|
|
||||||
// TODO: kill this ^ with fire
|
|
||||||
}))
|
|
||||||
actions.append(UIPreviewAction(title: "Share", style: .default, handler: { (_, _) in
|
|
||||||
let vc = UIActivityViewController(activityItems: [account.url], applicationActivities: nil)
|
|
||||||
UIApplication.shared.delegate!.window!!.rootViewController!.present(vc, animated: true)
|
|
||||||
}))
|
|
||||||
actions.append(UIPreviewAction(title: "Send Message", style: .default, handler: { (_, _) in
|
|
||||||
let vc = UINavigationController(rootViewController: ComposeViewController(mentioningAcct: account.acct))
|
|
||||||
UIApplication.shared.delegate!.window!!.rootViewController!.present(vc, animated: true)
|
|
||||||
}))
|
|
||||||
}
|
|
||||||
return actions
|
|
||||||
}
|
|
||||||
|
|
||||||
func updateAccountUI() {
|
func updateAccountUI() {
|
||||||
loadingVC?.removeViewAndController()
|
loadingVC?.removeViewAndController()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue