Skip to content

Commit ac8d77a

Browse files
committed
remove unused code
1 parent 0429c43 commit ac8d77a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/code/PublishHelper.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,20 +1348,15 @@ internal Hashtable GetMetadataFromNupkg(string copiedNupkgPath, string packageNa
13481348
errRecord = null;
13491349

13501350
// in temp directory create an "extract" folder to which we'll copy .nupkg to, extract contents, etc.
1351-
string nupkgDirPath = Directory.GetParent(copiedNupkgPath).FullName; //someGuid/nupkg.myPkg.nupkg -> /someGuid/nupkg
1351+
string nupkgDirPath = Directory.GetParent(copiedNupkgPath).FullName; //someGuid/nupkg/myPkg.nupkg -> /someGuid/nupkg
13521352
string tempPath = Directory.GetParent(nupkgDirPath).FullName; // someGuid
1353-
var extractPath = System.IO.Path.Combine(tempPath, "extract");
1354-
string packageFullName = System.IO.Path.GetFileName(copiedNupkgPath);
1353+
var extractPath = System.IO.Path.Combine(tempPath, "extract"); // someGuid/extract
13551354

13561355
try
13571356
{
13581357
var dir = Directory.CreateDirectory(extractPath);
13591358
dir.Attributes &= ~FileAttributes.ReadOnly;
13601359

1361-
// copy .nupkg
1362-
// string destNupkgPath = Path.Combine(tempDiscoveryPath, packageFullName);
1363-
// File.Copy(packagePath, destNupkgPath);
1364-
13651360
// change extension to .zip
13661361
string zipFilePath = System.IO.Path.ChangeExtension(copiedNupkgPath, ".zip");
13671362
File.Move(copiedNupkgPath, zipFilePath);

0 commit comments

Comments
 (0)