mirror of https://github.com/OpenTTD/OpenTTD
(svn r13141) -Codechange: remove an unused variable from Window.
parent
87015f5b63
commit
7812b24a77
|
@ -804,13 +804,10 @@ static Window *ForceFindDeletableWindow()
|
||||||
* @param widget pointer of widget array to fill the window with
|
* @param widget pointer of widget array to fill the window with
|
||||||
*
|
*
|
||||||
* @post \c w->widget points to allocated memory and contains the copied widget array except for the terminating widget,
|
* @post \c w->widget points to allocated memory and contains the copied widget array except for the terminating widget,
|
||||||
* \c w->original_widget points to the original widgets,
|
|
||||||
* \c w->widget_count contains number of widgets in the allocated memory.
|
* \c w->widget_count contains number of widgets in the allocated memory.
|
||||||
*/
|
*/
|
||||||
static void AssignWidgetToWindow(Window *w, const Widget *widget)
|
static void AssignWidgetToWindow(Window *w, const Widget *widget)
|
||||||
{
|
{
|
||||||
w->original_widget = widget;
|
|
||||||
|
|
||||||
if (widget != NULL) {
|
if (widget != NULL) {
|
||||||
uint index = 1;
|
uint index = 1;
|
||||||
|
|
||||||
|
|
|
@ -299,7 +299,6 @@ public:
|
||||||
byte caption_color; ///< Background color of the window caption, contains PlayerID
|
byte caption_color; ///< Background color of the window caption, contains PlayerID
|
||||||
|
|
||||||
ViewportData *viewport; ///< Pointer to viewport data, if present
|
ViewportData *viewport; ///< Pointer to viewport data, if present
|
||||||
const Widget *original_widget; ///< Original widget layout, copied from WindowDesc
|
|
||||||
Widget *widget; ///< Widgets of the window
|
Widget *widget; ///< Widgets of the window
|
||||||
uint widget_count; ///< Number of widgets of the window
|
uint widget_count; ///< Number of widgets of the window
|
||||||
uint32 desc_flags; ///< Window/widgets default flags setting, @see WindowDefaultFlag
|
uint32 desc_flags; ///< Window/widgets default flags setting, @see WindowDefaultFlag
|
||||||
|
|
Loading…
Reference in New Issue