From 1d8bd048757df0ac761ca52ee25899972786353b Mon Sep 17 00:00:00 2001 From: Ashish Aggarwal Date: Mon, 29 Jan 2024 18:37:34 -0500 Subject: [PATCH] Update PackageManagerClient.cs --- src/DynamoPackages/PackageManagerClient.cs | 49 ---------------------- 1 file changed, 49 deletions(-) diff --git a/src/DynamoPackages/PackageManagerClient.cs b/src/DynamoPackages/PackageManagerClient.cs index b14eb3a7a73..1afe669ecd0 100644 --- a/src/DynamoPackages/PackageManagerClient.cs +++ b/src/DynamoPackages/PackageManagerClient.cs @@ -289,55 +289,6 @@ internal void Publish(Package package, object files, IEnumerable markdow } } - /// - /// This method allows the user to publish a package retaining their predefined folder structure - /// In this case, Dynamo will not allocate files in specific folders, but instead will replicate the folder structure under the chosen publish path - /// - /// The newly created package - /// List of folders. Each list of lists represents a root folder. There can be one or many root folders. - /// Any files located in the user specified markdown folder. - /// A boolean showing if this is a new package, or an update to an existing package. - /// The PackageUploadHandle used to communicate the status of the upload. - internal void PublishRetainFolderStructure(Package package, IEnumerable> files, IEnumerable markdownFiles, bool isNewVersion, PackageUploadHandle packageUploadHandle) - { - try - { - ResponseBody ret = null; - if (isNewVersion) - { - var pkg = uploadBuilder.NewPackageVersionRetainUpload(package, packageUploadDirectory, files, markdownFiles, - packageUploadHandle); - packageUploadHandle.UploadState = PackageUploadHandle.State.Uploading; - ret = this.client.ExecuteAndDeserialize(pkg); - } - else - { - var pkg = uploadBuilder.NewPackageRetainUpload(package, packageUploadDirectory, files, markdownFiles, - packageUploadHandle); - packageUploadHandle.UploadState = PackageUploadHandle.State.Uploading; - ret = this.client.ExecuteAndDeserialize(pkg); - } - if (ret == null) - { - packageUploadHandle.Error("Failed to submit. Try again later."); - return; - } - - if (ret != null && !ret.success) - { - packageUploadHandle.Error(ret.message); - return; - } - - packageUploadHandle.Done(null); - } - catch (Exception e) - { - packageUploadHandle.Error(e.GetType() + ": " + e.Message); - } - } - - internal PackageManagerResult Deprecate(string name) { return FailFunc.TryExecute(() =>