diff --git a/src/musikcube/cursespp/ListOverlay.cpp b/src/musikcube/cursespp/ListOverlay.cpp index 3bdb96692..bbd3ad3d0 100644 --- a/src/musikcube/cursespp/ListOverlay.cpp +++ b/src/musikcube/cursespp/ListOverlay.cpp @@ -157,12 +157,8 @@ void ListOverlay::Layout() { } bool ListOverlay::ScrollbarVisible() { -#ifndef __FreeBSD__ auto contentHeight = this->height - 4; /* top and bottom padding + title */ return (int) this->listWindow->EntryCount() > contentHeight; -#else - return false; -#endif } ListOverlay& ListOverlay::SetTitle(const std::string& title) { diff --git a/src/musikcube/cursespp/Scrollbar.cpp b/src/musikcube/cursespp/Scrollbar.cpp index 591a5a0c1..ac3c3aeb9 100644 --- a/src/musikcube/cursespp/Scrollbar.cpp +++ b/src/musikcube/cursespp/Scrollbar.cpp @@ -39,7 +39,6 @@ using namespace cursespp; void Scrollbar::Draw(ListWindow* list, Window* target) { -#ifndef __FreeBSD__ int height = list->GetHeight(); auto *adapter = &list->GetScrollAdapter(); if (adapter && height > 2) { @@ -84,5 +83,4 @@ void Scrollbar::Draw(ListWindow* list, Window* target) { if (i == yOffset) wattroff(frame, A_REVERSE); } } -#endif }