From 7095b21eb4e7bcd03bade330e9d1a1b6f5b2043f Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Fri, 10 Jan 2014 14:53:27 +0100 Subject: [PATCH] Removing some internal experimental stuff that isnt used --- src/Umbraco.Core/Services/PackagingService.cs | 44 +------------------ 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/src/Umbraco.Core/Services/PackagingService.cs b/src/Umbraco.Core/Services/PackagingService.cs index f8c5f72d2b..d8d7571caa 100644 --- a/src/Umbraco.Core/Services/PackagingService.cs +++ b/src/Umbraco.Core/Services/PackagingService.cs @@ -55,49 +55,7 @@ namespace Umbraco.Core.Services _importedContentTypes = new Dictionary(); } - - #region Generic export methods - - internal void ExportToFile(string absoluteFilePath, string nodeType, int id) - { - XElement xml = null; - - if (nodeType.Equals("content", StringComparison.InvariantCultureIgnoreCase)) - { - var content = _contentService.GetById(id); - xml = Export(content); - } - - if (nodeType.Equals("media", StringComparison.InvariantCultureIgnoreCase)) - { - var media = _mediaService.GetById(id); - xml = Export(media); - } - - if (nodeType.Equals("contenttype", StringComparison.InvariantCultureIgnoreCase)) - { - var contentType = _contentTypeService.GetContentType(id); - xml = Export(contentType); - } - - if (nodeType.Equals("mediatype", StringComparison.InvariantCultureIgnoreCase)) - { - var mediaType = _contentTypeService.GetMediaType(id); - xml = Export(mediaType); - } - - if (nodeType.Equals("datatype", StringComparison.InvariantCultureIgnoreCase)) - { - var dataType = _dataTypeService.GetDataTypeDefinitionById(id); - xml = Export(dataType); - } - - if (xml != null) - xml.Save(absoluteFilePath); - } - - #endregion - + #region Content ///