(svn r13683) -Codechange: privatize a function that is not used outside of the class who calls it

This commit is contained in:
belugas 2008-07-09 02:18:51 +00:00
parent cb452bcc7d
commit 33150af3e2

View File

@ -113,6 +113,21 @@ uint GetMaskOfTownActions(int *nump, PlayerID pid, const Town *t)
return buttons;
}
struct TownAuthorityWindow : Window {
private:
Town *town;
int sel_index;
enum TownAuthorityWidget {
TWA_CLOSEBOX = 0,
TWA_CAPTION,
TWA_RATING_INFO,
TWA_COMMAND_LIST,
TWA_SCROLLBAR,
TWA_ACTION_INFO,
TWA_EXECUTE,
};
/**
* Get the position of the Nth set bit.
*
@ -134,21 +149,6 @@ static int GetNthSetBit(uint32 bits, int n)
return -1;
}
struct TownAuthorityWindow : Window {
private:
Town *town;
int sel_index;
enum TownAuthorityWidget {
TWA_CLOSEBOX = 0,
TWA_CAPTION,
TWA_RATING_INFO,
TWA_COMMAND_LIST,
TWA_SCROLLBAR,
TWA_ACTION_INFO,
TWA_EXECUTE,
};
public:
TownAuthorityWindow(const WindowDesc *desc, WindowNumber window_number) :
Window(desc, window_number), sel_index(-1)