Skip to content

Cleanup unused pinvokes on unix - #9531

Merged
Ilya (iSazonov) merged 5 commits into
PowerShell:masterfrom
iSazonov:cleanup-unused-pinvokes-on-unix
May 7, 2019
Merged

Ilya (iSazonov) merged 5 commits into
PowerShell:masterfrom
iSazonov:cleanup-unused-pinvokes-on-unix

Conversation

@iSazonov

@iSazonov Ilya (iSazonov) commented May 4, 2019 •

Copy link
Copy Markdown
Collaborator

PR Summary

  • Remove unused TemporaryDirectory()
  • Remove unused GetUserName()
  • Use Environment.UserName on Unix
  • Use Environment.UserName and Environment.UserDomainName on Windows

PR Context

PR Checklist

@iSazonov Ilya (iSazonov) added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label May 4, 2019
@iSazonov Ilya (iSazonov) added this to the 7.0.0-preview.1 milestone May 4, 2019
@iSazonov
Ilya (iSazonov) force-pushed the cleanup-unused-pinvokes-on-unix branch from 924c5a4 to b07bde8 Compare May 4, 2019 07:07
@iSazonov
Ilya (iSazonov) force-pushed the cleanup-unused-pinvokes-on-unix branch from b0a8510 to a1488e8 Compare May 4, 2019 08:50
@iSazonov Ilya (iSazonov) self-assigned this May 4, 2019
@iSazonov
Ilya (iSazonov) merged commit 2be3db8 into PowerShell:master May 7, 2019
@iSazonov
Ilya (iSazonov) deleted the cleanup-unused-pinvokes-on-unix branch May 7, 2019 05:22
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
* Remove TemporaryDirectory()
* Remove GetUserName()
* Use Environment.UserName on Unix
* Remove old comment
* Use Environment.UserName on Windows too
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants