Skip to content

Commit d5a6a38

Browse files
authored
bpo-34977: Remove unused preprocessor definition (GH-11092)
1 parent 4824385 commit d5a6a38

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

PC/python_uwp.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@
77
#include <Windows.h>
88
#include <shellapi.h>
99

10-
#ifdef PYTHON_UWP_SUPPORTED
1110
#include <winrt\Windows.ApplicationModel.h>
1211
#include <winrt\Windows.Storage.h>
13-
#else
14-
#include <string>
15-
#endif
1612

1713
#ifdef PYTHONW
1814
#ifdef _DEBUG
@@ -31,7 +27,6 @@ const wchar_t *PROGNAME = L"python.exe";
3127
static void
3228
set_user_base()
3329
{
34-
#ifdef PYTHON_UWP_SUPPORTED
3530
wchar_t envBuffer[2048];
3631
try {
3732
const auto appData = winrt::Windows::Storage::ApplicationData::Current();
@@ -49,17 +44,12 @@ set_user_base()
4944
}
5045
} catch (...) {
5146
}
52-
#endif
5347
}
5448

5549
static const wchar_t *
5650
get_argv0(const wchar_t *argv0)
5751
{
58-
#ifdef PYTHON_UWP_SUPPORTED
5952
winrt::hstring installPath;
60-
#else
61-
std::wstring installPath;
62-
#endif
6353
const wchar_t *launcherPath;
6454
wchar_t *buffer;
6555
size_t len;
@@ -79,7 +69,6 @@ get_argv0(const wchar_t *argv0)
7969
return buffer;
8070
}
8171

82-
#ifdef PYTHON_UWP_SUPPORTED
8372
try {
8473
const auto package = winrt::Windows::ApplicationModel::Package::Current();
8574
if (package) {
@@ -91,7 +80,6 @@ get_argv0(const wchar_t *argv0)
9180
}
9281
catch (...) {
9382
}
94-
#endif
9583

9684
if (!installPath.empty()) {
9785
len = installPath.size() + wcslen(PROGNAME) + 2;

0 commit comments

Comments
 (0)