summaryrefslogtreecommitdiffstats
path: root/PC/python_uwp.cpp
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2018-12-11 04:56:09 (GMT)
committerGitHub <noreply@github.com>2018-12-11 04:56:09 (GMT)
commitd5a6a389d492c5e3d7933bafbd5252fd86ac4d49 (patch)
tree1beb78668ee24252850868dbac4d305cf08f8740 /PC/python_uwp.cpp
parent4824385fec0a1de99b4183f995a3e4923771bf64 (diff)
downloadcpython-d5a6a389d492c5e3d7933bafbd5252fd86ac4d49.zip
cpython-d5a6a389d492c5e3d7933bafbd5252fd86ac4d49.tar.gz
cpython-d5a6a389d492c5e3d7933bafbd5252fd86ac4d49.tar.bz2
bpo-34977: Remove unused preprocessor definition (GH-11092)
Diffstat (limited to 'PC/python_uwp.cpp')
-rw-r--r--PC/python_uwp.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/PC/python_uwp.cpp b/PC/python_uwp.cpp
index b015abd..5c8caa6 100644
--- a/PC/python_uwp.cpp
+++ b/PC/python_uwp.cpp
@@ -7,12 +7,8 @@
#include <Windows.h>
#include <shellapi.h>
-#ifdef PYTHON_UWP_SUPPORTED
#include <winrt\Windows.ApplicationModel.h>
#include <winrt\Windows.Storage.h>
-#else
-#include <string>
-#endif
#ifdef PYTHONW
#ifdef _DEBUG
@@ -31,7 +27,6 @@ const wchar_t *PROGNAME = L"python.exe";
static void
set_user_base()
{
-#ifdef PYTHON_UWP_SUPPORTED
wchar_t envBuffer[2048];
try {
const auto appData = winrt::Windows::Storage::ApplicationData::Current();
@@ -49,17 +44,12 @@ set_user_base()
}
} catch (...) {
}
-#endif
}
static const wchar_t *
get_argv0(const wchar_t *argv0)
{
-#ifdef PYTHON_UWP_SUPPORTED
winrt::hstring installPath;
-#else
- std::wstring installPath;
-#endif
const wchar_t *launcherPath;
wchar_t *buffer;
size_t len;
@@ -79,7 +69,6 @@ get_argv0(const wchar_t *argv0)
return buffer;
}
-#ifdef PYTHON_UWP_SUPPORTED
try {
const auto package = winrt::Windows::ApplicationModel::Package::Current();
if (package) {
@@ -91,7 +80,6 @@ get_argv0(const wchar_t *argv0)
}
catch (...) {
}
-#endif
if (!installPath.empty()) {
len = installPath.size() + wcslen(PROGNAME) + 2;