pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/d5a6a389d492c5e3d7933bafbd5252fd86ac4d49

"stylesheet" href="https://github.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> bpo-34977: Remove unused preprocessor definition (GH-11092) · python/cpython@d5a6a38 · GitHub
Skip to content

Commit d5a6a38

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

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy