Skip to content

Commit 575b345

Browse files
committed
Remove more conditional compilation
1 parent 79a9d1f commit 575b345

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Sources/PulseUI/Features/FileViewer/RichTextView/RichTextViewModel.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ final class RichTextViewModel: ObservableObject {
134134

135135
selectedMatchIndex = 0
136136
didUpdateCurrentSelectedMatch()
137-
#if os(macOS)
138-
textView?.enclosingScrollView?.verticalRulerView?.needsDisplay = true
139-
#endif
140-
141137
isSearchingInBackground = false
142138
searchIfNeeded()
143139
}

Sources/PulseUI/Features/Sessions/SessionListView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ struct SessionListView: View {
8787

8888
private func makeHeader(for startDate: Date, sessions: [LoggerSessionEntity]) -> some View {
8989
HStack {
90-
#if os(macOS)
90+
#if os(macOS)
9191
PlainListSectionHeaderSeparator(title: sectionTitleFormatter.string(from: startDate) + " (\(sessions.count))")
92-
#else
92+
#else
9393
(Text(sectionTitleFormatter.string(from: startDate)) +
9494
Text(" (\(sessions.count))").foregroundColor(.secondary.opacity(0.5)))
9595
.font(.headline)
9696
.padding(.vertical, 6)
97-
#endif
97+
#endif
9898

9999
#if os(iOS) || os(visionOS)
100100
if editMode?.wrappedValue.isEditing ?? false {

0 commit comments

Comments
 (0)