krz/hutch

an ios client for sourcehut

clone: git clone https://gitbay.org/krz/hutch.git

f38a1caa591fa43cb3d6249b90919c9a3a185c25

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-03-24T21:44:44Z

chore: rename unused protocol params to _ across UIKit representables
 Hutch/Extensions/SRHTShareUI.swift        | 4 ++--
 Hutch/Views/Builds/BuildTaskLogView.swift | 4 ++--
 Hutch/Views/Inbox/ThreadDetailView.swift  | 4 ++--
 Hutch/Views/Repositories/ReadmeView.swift | 6 +++---
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/Hutch/Extensions/SRHTShareUI.swift b/Hutch/Extensions/SRHTShareUI.swift
index d09476f..37a9334 100644
--- a/Hutch/Extensions/SRHTShareUI.swift
+++ b/Hutch/Extensions/SRHTShareUI.swift
@@ -52,11 +52,11 @@ struct SRHTShareButton<Label: View>: View {
 private struct ShareSheet: UIViewControllerRepresentable {
     let activityItems: [Any]
 
-    func makeUIViewController(context: Context) -> UIActivityViewController {
+    func makeUIViewController(context _: Context) -> UIActivityViewController {
         UIActivityViewController(activityItems: activityItems, applicationActivities: nil)
     }
 
-    func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {
+    func updateUIViewController(_ : UIActivityViewController, context _: Context) {
         // UIActivityViewController is fully configured in makeUIViewController.
         // No state-driven updates are required.
     }
diff --git a/Hutch/Views/Builds/BuildTaskLogView.swift b/Hutch/Views/Builds/BuildTaskLogView.swift
index 85c9e21..d1d60a4 100644
--- a/Hutch/Views/Builds/BuildTaskLogView.swift
+++ b/Hutch/Views/Builds/BuildTaskLogView.swift
@@ -92,7 +92,7 @@ struct BuildTaskLogView: View {
 private struct BuildLogTextView: UIViewRepresentable {
     let text: String
 
-    func makeUIView(context: Context) -> UITextView {
+    func makeUIView(context _: Context) -> UITextView {
         let textView = UITextView()
         textView.isEditable = false
         textView.isSelectable = true
@@ -110,7 +110,7 @@ private struct BuildLogTextView: UIViewRepresentable {
         return textView
     }
 
-    func updateUIView(_ uiView: UITextView, context: Context) {
+    func updateUIView(_ uiView: UITextView, context _: Context) {
         guard uiView.text != text else { return }
         uiView.text = text
     }
diff --git a/Hutch/Views/Inbox/ThreadDetailView.swift b/Hutch/Views/Inbox/ThreadDetailView.swift
index 143200f..c595497 100644
--- a/Hutch/Views/Inbox/ThreadDetailView.swift
+++ b/Hutch/Views/Inbox/ThreadDetailView.swift
@@ -277,7 +277,7 @@ private struct MailComposeView: UIViewControllerRepresentable {
         return controller
     }
 
-    func updateUIViewController(_ uiViewController: UIViewController, context: Context) {
+    func updateUIViewController(_ : UIViewController, context _: Context) {
         // The view controller is fully configured in makeUIViewController.
         // No state-driven updates are required.
     }
@@ -339,7 +339,7 @@ private final class MailUnavailableViewController: UIViewController {
     }
 
     @available(*, unavailable)
-    required init?(coder: NSCoder) {
+    required init?(coder _: NSCoder) {
         fatalError("init(coder:) has not been implemented")
     }
 
diff --git a/Hutch/Views/Repositories/ReadmeView.swift b/Hutch/Views/Repositories/ReadmeView.swift
index 3777cdb..dea41f3 100644
--- a/Hutch/Views/Repositories/ReadmeView.swift
+++ b/Hutch/Views/Repositories/ReadmeView.swift
@@ -1140,7 +1140,7 @@ private final class HTMLWebViewCoordinator: NSObject, WKNavigationDelegate, @unc
         self.parent = parent
     }
 
-    func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
+    func webView(_ webView: WKWebView, didFinish _: WKNavigation!) {
         DispatchQueue.main.async {
             self.parent.loadError = nil
         }
@@ -1151,11 +1151,11 @@ private final class HTMLWebViewCoordinator: NSObject, WKNavigationDelegate, @unc
         }
     }
 
-    func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
+    func webView(_: WKWebView, didFail _: WKNavigation!, withError error: Error) {
         handleLoadFailure(error)
     }
 
-    func webView(_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: Error) {
+    func webView(_: WKWebView, didFailProvisionalNavigation _: WKNavigation!, withError error: Error) {
         handleLoadFailure(error)
     }