Skip to content

Commit 3d98f13

Browse files
committed
Eliminated HAS_UI from UI library
- HAS_UI is defined in .project file, and used only for Win32/Win64 platforms - HAS_UI no longer appears in UI library, it's external define
1 parent d038599 commit 3d98f13

19 files changed

+19
-56
lines changed

Core/Core.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ typedef unsigned __int64 uint64;
149149
# define FORMAT_SIZE(fmt) "%z" fmt
150150
# undef VSTUDIO_INTEGRATION
151151
# undef WIN32_USE_SEH
152-
# undef HAS_UI // not yet supported on this platform
153152

154153
typedef signed long long int64;
155154
typedef unsigned long long uint64;

Tools/UITest/Build.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#define HAS_UI 1
21
#define MAX_DEBUG 1

UI/BaseDialog.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
*/
5454

5555

56-
#if HAS_UI
57-
5856
//#define DEBUG_WINDOWS_ERRORS MAX_DEBUG
5957
//#define DEBUG_MULTILIST_SEL 1
6058

@@ -3752,6 +3750,3 @@ INT_PTR UIBaseDialog::WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
37523750

37533751
unguard;
37543752
}
3755-
3756-
3757-
#endif // HAS_UI

UI/BaseDialog.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
#include "Core.h"
99

10-
#if HAS_UI // defined in Build.h, included from Core.h
11-
1210
#include "Win32Types.h"
1311
#include "UnCore.h" // for TArray and FString
1412

@@ -1309,6 +1307,4 @@ class UIBaseDialog : public UIGroup
13091307
void UISetExceptionHandler(void (*Handler)());
13101308

13111309

1312-
#endif // HAS_UI
1313-
13141310
#endif // __BASE_DIALOG_H__

UI/FileControls.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
#include "BaseDialog.h"
2626
#include "FileControls.h"
2727

28-
#if HAS_UI
29-
3028
#if _WIN32
3129

3230
#pragma comment(lib, "ole32.lib")
@@ -280,5 +278,3 @@ void UIFileNameEditor::OnBrowseClicked(UIButton* sender)
280278
Editor->SetText();
281279
}
282280
}
283-
284-
#endif // HAS_UI

UI/FileControls.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#ifndef __FILE_CONTROLS_H__
66
#define __FILE_CONTROLS_H__
77

8-
#if HAS_UI
98

109
class UIFilePathEditor : public UIGroup
1110
{
@@ -100,6 +99,4 @@ FString ShowFileSelectionDialog(
10099
const TArray<FString>& Filters);
101100

102101

103-
#endif // HAS_UI
104-
105102
#endif // __FILE_CONTROLS_H__

UI/UILayout.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// Licensed under the BSD license. See LICENSE.txt file in the project root for full license information.
44

55
#include "BaseDialog.h"
6-
7-
#if HAS_UI
8-
96
#include "UIPrivate.h"
107

118
//#define DEBUG_LAYOUT 1
@@ -488,5 +485,3 @@ void UIPageControl::ComputeLayoutWithBorders(int borderLeft, int borderRight, in
488485

489486
unguard;
490487
}
491-
492-
#endif // HAS_UI

UI/UIMenu.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
#endif // _WIN32
1515

1616
#include "BaseDialog.h"
17-
18-
#if HAS_UI
19-
2017
#include "UIPrivate.h"
2118

2219
/*-----------------------------------------------------------------------------
@@ -636,5 +633,3 @@ void UIMenu::Popup(UIElement* Owner, int x, int y)
636633

637634
unguard;
638635
}
639-
640-
#endif // HAS_UI

UI/stl-stub/Core.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
#include <string.h>
1515

1616

17-
#ifndef HAS_UI
18-
#define HAS_UI 1
19-
#endif
20-
2117
#undef min
2218
#undef max
2319

UmodelTool/Build.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#define RENDERING 1
55
#define PROFILE 1
66
#define DECLARE_VIEWER_PROPS 1
7-
#define HAS_UI 1 // disable this line to remove UI code
87
//#define VSTUDIO_INTEGRATION 1 // improved debugging with Visual Studio
98

109
//#define PRIVATE_BUILD 1

0 commit comments

Comments
 (0)