Skip to content

Commit 93f4908

Browse files
committed
fix: Remove useless comments
1 parent eafc1ca commit 93f4908

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

src/cmd/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ func Run(content embed.FS) {
4949
fmt.Println(variable.LastDirFile)
5050
return nil
5151
}
52-
// use shared help column width (mnd)
5352
fmt.Printf("%-*s %s\n",
5453
common.HelpKeyColumnWidth,
5554
lipgloss.NewStyle().Foreground(lipgloss.Color("#66b2ff")).Render("[Configuration file path]"),
@@ -283,7 +282,6 @@ func shouldCheckForUpdate(now, last time.Time) bool {
283282
}
284283

285284
func checkAndNotifyUpdate() {
286-
// shared CLI timeout (mnd)
287285
ctx, cancel := context.WithTimeout(context.Background(), common.DefaultCLIContextTimeout)
288286
defer cancel()
289287

src/internal/function.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ func getTypeOrderingFunc(elements []element, reversed bool) sliceOrderFunc {
242242
}
243243

244244
func panelElementHeight(mainPanelHeight int) int {
245-
// visible rows exclude borders/header/footer paddings (mnd)
246245
return mainPanelHeight - common.PanelPadding
247246
}
248247

src/internal/handle_file_operations.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ func (m *model) panelItemRename() {
9797
m.fileModel.renaming = true
9898
panel.renaming = true
9999
m.firstTextInput = true
100-
// leave inner padding for input field (mnd)
101100
panel.rename = common.GenerateRenameTextInput(m.fileModel.width-common.InnerPadding, cursorPos, panel.element[panel.cursor].name)
102101
}
103102

src/internal/handle_modal.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ func (m *model) helpMenuListUp() {
161161
// Similarly, we use max(..., 0) to ensure the renderIndex doesn't become negative,
162162
// which can happen if the number of items is less than the view height.
163163
// This prevents a potential out-of-bounds panic during rendering.
164-
// 4 = visible rows lost to borders/title in help list (mnd)
165164
m.helpMenu.renderIndex = max(len(m.helpMenu.filteredData)-(m.helpMenu.height-common.InnerPadding), 0)
166165
}
167166
}
@@ -191,7 +190,6 @@ func (m *model) helpMenuListDown() {
191190
m.helpMenu.renderIndex++
192191
}
193192
// Clamp renderIndex to bottom.
194-
// 4 = visible rows lost to borders/title in help list (mnd)
195193
bottom := len(m.helpMenu.filteredData) - (m.helpMenu.height - common.InnerPadding)
196194
if bottom < 0 {
197195
bottom = 0

0 commit comments

Comments
 (0)