diff --git a/Code/Npoi.Core.OpenXml4Net/OPC/Package.cs b/Code/Npoi.Core.OpenXml4Net/OPC/Package.cs deleted file mode 100644 index 6062648..0000000 --- a/Code/Npoi.Core.OpenXml4Net/OPC/Package.cs +++ /dev/null @@ -1,160 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using System.Text; -//using System.IO; -//using Npoi.Core.OpenXml4Net.Exceptions; -//using Npoi.Core.OpenXml4Net.OPC.Internal; -//using Npoi.Core.Util; - -//namespace Npoi.Core.OpenXml4Net.OPC -//{ -// /** -// * @deprecated (name clash with {@link java.lang.Package} use {@link OPCPackage} instead. -// * -// * @author Julien Chable, CDubet -// * -// */ -// public abstract class Package : OPCPackage -// { -// /** -// * Logger. -// */ -// private static POILogger logger = POILogFactory.GetLogger(typeof(Package)); - -// /** -// * @deprecated use {@link OPCPackage} -// */ -// public Package(PackageAccess access) -// : base(access) -// { -// } - -// /** -// * @deprecated use {@link OPCPackage#open(string)} -// */ -// public static Package Open(string path) -// { -// return Open(path, defaultPackageAccess); -// } - -// /** -// * @deprecated use {@link OPCPackage#open(string,PackageAccess)} -// */ -// public static Package Open(string path, PackageAccess access) -// { -// if (path == null || "".Equals(path.Trim()) -// || new DirectoryInfo(path).Exists) -// throw new ArgumentException("path"); - -// Package pack = new ZipPackage(path, access); -// if (pack.partList == null && access != PackageAccess.WRITE) -// { -// pack.GetParts(); -// } -// pack.originalPackagePath = Path.GetFullPath(path); -// return pack; -// } - -// /** -// * @deprecated use {@link OPCPackage#open(InputStream)} -// */ -// public static Package Open(Stream in1) -// { -// Package pack = new ZipPackage(in1, PackageAccess.READ); -// if (pack.partList == null) -// { -// pack.GetParts(); -// } -// return pack; -// } - -// /** -// * @deprecated use {@link OPCPackage#openOrCreate(java.io.File)} -// */ -// public static Package OpenOrCreate(string path) -// { -// Package retPackage = null; -// if (File.Exists(path)) -// { -// retPackage = Open(path); -// } -// else -// { -// retPackage = Create(path); -// } -// return retPackage; -// } - -// public static Package Create() -// { -// Stream memStream = new MemoryStream(); -// return Package.Create(memStream); -// } -// /** -// * @deprecated use {@link OPCPackage#create(File)} -// */ -// public static Package Create(string path) -// { -// if (new DirectoryInfo(path).Exists) -// throw new ArgumentException("path"); - -// if (File.Exists(path)) -// { -// throw new InvalidOperationException( -// "This package (or file) already exists : use the open() method or delete the file."); -// } - -// // Creates a new package -// Package pkg = null; -// pkg = new ZipPackage(); -// pkg.originalPackagePath = Path.GetFullPath(path); - -// ConfigurePackage(pkg); -// return pkg; -// } - -// /** -// * @deprecated use {@link OPCPackage#create(OutputStream)} -// */ -// public static Package Create(Stream output) -// { -// Package pkg = null; -// pkg = new ZipPackage(); -// pkg.originalPackagePath = null; -// pkg.output = output; - -// ConfigurePackage(pkg); -// return pkg; -// } - -// /** -// * Configure the package. -// * -// * @param pkg -// */ -// private static void ConfigurePackage(Package pkg) -// { -// // Content type manager -// pkg.contentTypeManager = new ZipContentTypeManager(null, pkg); -// // Add default content types for .xml and .rels -// pkg.contentTypeManager -// .AddContentType( -// PackagingUriHelper -// .CreatePartName(PackagingUriHelper.PACKAGE_RELATIONSHIPS_ROOT_URI), -// ContentTypes.RELATIONSHIPS_PART); -// pkg.contentTypeManager -// .AddContentType(PackagingUriHelper -// .CreatePartName("/default.xml"), -// ContentTypes.PLAIN_OLD_XML); - -// // Init some Package properties -// pkg.packageProperties = new PackagePropertiesPart(pkg, -// PackagingUriHelper.CORE_PROPERTIES_PART_NAME); -// pkg.packageProperties.SetCreatorProperty("Generated by OpenXml4Net"); -// pkg.packageProperties.SetCreatedProperty(new Nullable( -// new DateTime())); - -// } - -// } -//} \ No newline at end of file diff --git a/Code/Npoi.Core/Util/Collections/EmptyEnumerable.cs b/Code/Npoi.Core/Util/Collections/EmptyEnumerable.cs deleted file mode 100644 index fb9d71e..0000000 --- a/Code/Npoi.Core/Util/Collections/EmptyEnumerable.cs +++ /dev/null @@ -1,68 +0,0 @@ -/* ==================================================================== - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for Additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -==================================================================== */ - -/* ================================================================ - * About NPOI - * Author: Tony Qu - * Author's email: tonyqus (at) gmail.com - * Author's Blog: tonyqus.wordpress.com.cn (wp.tonyqus.cn) - * HomePage: http://www.codeplex.com/npoi - * Contributors: - * - * ==============================================================*/ - -namespace Npoi.Core.Util.Collections -{ - //public sealed class EmptyEnumerable - // : IEnumerable - //{ - // public static readonly IEnumerable Instance = new EmptyEnumerable(); - - // private EmptyEnumerable() - // { - // } - - // public IEnumerator GetEnumerator() - // { - // return EmptyEnumerator.Instance; - // } - //} - - //public sealed class EmptyEnumerator - // : IEnumerator - //{ - // public static readonly IEnumerator Instance = new EmptyEnumerator(); - - // private EmptyEnumerator() - // { - // } - - // public bool MoveNext() - // { - // return false; - // } - - // public void Reset() - // { - // } - - // public object Current - // { - // get { throw new InvalidOperationException("No elements"); } - // } - //} -} \ No newline at end of file