lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [10/21] lucenenet git commit: Lucene.Net.Core.Support.Codecs.DefaultCodecFactory: Removed commented test code
Date Sun, 12 Mar 2017 16:38:09 GMT
Lucene.Net.Core.Support.Codecs.DefaultCodecFactory: Removed commented test code


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/db1cfa93
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/db1cfa93
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/db1cfa93

Branch: refs/heads/api-work
Commit: db1cfa93a064f7b813aa90e1db5ec38b9f149f8d
Parents: 117429e
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Mar 12 01:36:41 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Mar 12 01:36:41 2017 +0700

----------------------------------------------------------------------
 .../Support/Codecs/DefaultCodecFactory.cs       | 147 +------------------
 1 file changed, 1 insertion(+), 146 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/db1cfa93/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs b/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
index c1cbd6e..8906cd7 100644
--- a/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
@@ -129,155 +129,10 @@ namespace Lucene.Net.Codecs
         /// <summary>
         /// Gets a list of the available <see cref="Codec"/>s (by name).
         /// </summary>
-        /// <returns>A <see cref="ICollection{string}"/> of <see cref="Codec"/>
names.</returns>
+        /// <returns>A <see cref="T:ICollection{string}"/> of <see cref="Codec"/>
names.</returns>
         public ICollection<string> AvailableServices()
         {
             return m_codecNameToTypeMap.Keys;
         }
     }
-
-
-
-
-    //[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
-    //public sealed class CodecNameAttribute : Attribute
-    //{
-    //    public CodecNameAttribute(string name)
-    //    {
-    //        if (string.IsNullOrEmpty(name))
-    //            throw new ArgumentNullException("name");
-    //        this.Name = name;
-    //    }
-
-    //    public string Name { get; private set; }
-    //}
-
-    
-
-    
-
-    
-
-    
-
-
-    //public interface IServiceInstanceCache<TService>
-    //{
-
-    //}
-
-    //public class ServiceInstanceCache<TService> : IServiceInstanceCache<TService>
-    //{
-
-    //}
-
-    //// LUCENENET TODO: Make Codec, DocValuesFormat, and PostingsFormat inherit this
-    //public abstract class NamedService<TService>
-    //{
-        
-    //}
-
-    //public interface IServiceNameProvider
-    //{
-    //    string GetServiceName(Type type);
-    //}
-
-    //public class ServiceNameProvider : IServiceNameProvider
-    //{
-    //    public string GetServiceName(Type type)
-    //    {
-    //        throw new NotImplementedException();
-    //    }
-
-    //    protected virtual string GetCanonicalName(Type t)
-    //    {
-    //        string name = t.Name;
-    //        string genericSuffix = string.Empty;
-    //        int genericIndex = name.IndexOf("`");
-    //        if (genericIndex > -1)
-    //        {
-    //            genericSuffix = name.Substring(genericIndex);
-    //            name = name.Substring(0, genericIndex);
-    //        }
-    //        if (name.EndsWith(typeof(TService).GetTypeInfo().Name, StringComparison.Ordinal))
-    //        {
-    //            name = name.Substring(0, name.Length - 5);
-    //        }
-    //        // Reappend the suffix to make the name unique (.NET specific)
-    //        return name + genericSuffix;
-    //    }
-    //}
-
-
-    //[CodecName("Argh")]
-    //public class MyFooCodec : Codec
-    //{
-    //    public MyFooCodec() : base("MyFoo")
-    //    {
-    //    }
-
-    //    public override DocValuesFormat DocValuesFormat
-    //    {
-    //        get
-    //        {
-    //            throw new NotImplementedException();
-    //        }
-    //    }
-
-    //    public override FieldInfosFormat FieldInfosFormat
-    //    {
-    //        get
-    //        {
-    //            throw new NotImplementedException();
-    //        }
-    //    }
-
-    //    public override LiveDocsFormat LiveDocsFormat
-    //    {
-    //        get
-    //        {
-    //            throw new NotImplementedException();
-    //        }
-    //    }
-
-    //    public override NormsFormat NormsFormat
-    //    {
-    //        get
-    //        {
-    //            throw new NotImplementedException();
-    //        }
-    //    }
-
-    //    public override PostingsFormat PostingsFormat
-    //    {
-    //        get
-    //        {
-    //            throw new NotImplementedException();
-    //        }
-    //    }
-
-    //    public override SegmentInfoFormat SegmentInfoFormat
-    //    {
-    //        get
-    //        {
-    //            throw new NotImplementedException();
-    //        }
-    //    }
-
-    //    public override StoredFieldsFormat StoredFieldsFormat
-    //    {
-    //        get
-    //        {
-    //            throw new NotImplementedException();
-    //        }
-    //    }
-
-    //    public override TermVectorsFormat TermVectorsFormat
-    //    {
-    //        get
-    //        {
-    //            throw new NotImplementedException();
-    //        }
-    //    }
-    //}
 }


Mime
View raw message