Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d5a6a389
Commit
d5a6a389
authored
Dec 10, 2018
by
Steve Dower
Committed by
GitHub
Dec 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34977: Remove unused preprocessor definition (GH-11092)
parent
4824385f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
PC/python_uwp.cpp
PC/python_uwp.cpp
+0
-12
No files found.
PC/python_uwp.cpp
View file @
d5a6a389
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment