소스 검색

Removed dead code from Listbox.

David Piuva 5 년 전
부모
커밋
20c4ff7a5d
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      Source/DFPSR/gui/components/ListBox.cpp

+ 0 - 4
Source/DFPSR/gui/components/ListBox.cpp

@@ -90,12 +90,8 @@ void ListBox::generateGraphics() {
 			top += verticalStep;
 			top += verticalStep;
 		}
 		}
 		if (this->hasVerticalScroll) {
 		if (this->hasVerticalScroll) {
-			ColorRgbaI32 buttonColor = ColorRgbaI32(color, 255);
-			ColorRgbaI32 barColor = ColorRgbaI32(color.red / 2, color.green / 2, color.blue / 2, 255);
-			ColorRgbaI32 borderColor = ColorRgbaI32(0, 0, 0, 255);
 			IRect whole = IRect(this->location.width() - scrollWidth, 0, scrollWidth, this->location.height());
 			IRect whole = IRect(this->location.width() - scrollWidth, 0, scrollWidth, this->location.height());
 			IRect upper = IRect(whole.left(), whole.top(), whole.width(), scrollEndHeight);
 			IRect upper = IRect(whole.left(), whole.top(), whole.width(), scrollEndHeight);
-			IRect middle = IRect(whole.left() + border, whole.top() + scrollEndHeight + border, whole.width() - border * 2, whole.height() - (border + scrollEndHeight) * 2);
 			IRect lower = IRect(whole.left(), whole.bottom() - scrollEndHeight, whole.width(), scrollEndHeight);
 			IRect lower = IRect(whole.left(), whole.bottom() - scrollEndHeight, whole.width(), scrollEndHeight);
 			IRect knob = this->getKnobLocation();
 			IRect knob = this->getKnobLocation();
 			// Only redraw the knob image if its dimensions changed
 			// Only redraw the knob image if its dimensions changed