瀏覽代碼

Cleaned up unused variables.

David Piuva 3 年之前
父節點
當前提交
74ba0f08ed
共有 2 個文件被更改,包括 0 次插入2 次删除
  1. 0 1
      Source/DFPSR/gui/components/ListBox.cpp
  2. 0 1
      Source/DFPSR/gui/components/helpers/ScrollBarImpl.cpp

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

@@ -123,7 +123,6 @@ void ListBox::limitScrolling(bool keepSelectedVisible) {
 }
 }
 
 
 void ListBox::receiveMouseEvent(const MouseEvent& event) {
 void ListBox::receiveMouseEvent(const MouseEvent& event) {
-	bool supressEvent = false;
 	this->inside = this->pointIsInside(event.position);
 	this->inside = this->pointIsInside(event.position);
 	IVector2D localPosition = event.position - this->location.upperLeft();
 	IVector2D localPosition = event.position - this->location.upperLeft();
 	bool verticalScrollIntercepted = this->verticalScrollBar.receiveMouseEvent(this->location, event);
 	bool verticalScrollIntercepted = this->verticalScrollBar.receiveMouseEvent(this->location, event);

+ 0 - 1
Source/DFPSR/gui/components/helpers/ScrollBarImpl.cpp

@@ -196,7 +196,6 @@ bool ScrollBarImpl::receiveMouseEvent(const IRect &parentLocation, const MouseEv
 		if (IRect::touches(scrollBarLocation, cursorLocation)) {
 		if (IRect::touches(scrollBarLocation, cursorLocation)) {
 			IRect upperLocation = getStartRect(scrollBarLocation, this->scrollButtonLength, this->vertical);
 			IRect upperLocation = getStartRect(scrollBarLocation, this->scrollButtonLength, this->vertical);
 			IRect lowerLocation = getEndRect(scrollBarLocation, this->scrollButtonLength, this->vertical);
 			IRect lowerLocation = getEndRect(scrollBarLocation, this->scrollButtonLength, this->vertical);
-			IRect knobLocation = this->getKnobLocation(scrollBarLocation);
 			intercepted = true;
 			intercepted = true;
 			if (IRect::touches(upperLocation, cursorLocation)) {
 			if (IRect::touches(upperLocation, cursorLocation)) {
 				// Upper scroll button
 				// Upper scroll button