Commit f641db9 1 parent f6117c1 commit f641db9 Copy full SHA for f641db9
File tree 2 files changed +0
-20
lines changed
2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -289,19 +289,6 @@ void OSTreeTUI::adjustScrollToSelectedCommit() {
289
289
scrollOffset = std::min (min, newScroll);
290
290
}
291
291
292
- void OSTreeTUI::adjustSelectedCommitToScroll () {
293
- int yToFit = selectedCommit * CommitRender::COMMIT_WINDOW_HEIGHT;
294
- int maxVal = screen.dimy () - 4 - CommitRender::COMMIT_WINDOW_HEIGHT - scrollOffset;
295
- int minVal = -scrollOffset;
296
-
297
- if (yToFit > maxVal) {
298
- --selectedCommit;
299
- }
300
- if (yToFit < minVal) {
301
- ++selectedCommit;
302
- }
303
- }
304
-
305
292
// SETTER & non-const GETTER
306
293
void OSTreeTUI::setPromotionBranch (std::string promotionBranch) {
307
294
this ->promotionBranch = promotionBranch;
Original file line number Diff line number Diff line change @@ -76,13 +76,6 @@ class OSTreeTUI {
76
76
*/
77
77
void adjustScrollToSelectedCommit ();
78
78
79
- /* *
80
- * @brief Adjust selected commit to fit to scroll commit (minimal adjustment of last selected)
81
- *
82
- * Warning: Currently only adjusts by 1
83
- */
84
- void adjustSelectedCommitToScroll ();
85
-
86
79
public:
87
80
// "SETTER" & non-const GETTER
88
81
void setPromotionBranch (std::string promotionBranch);
You can’t perform that action at this time.
0 commit comments