lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject git commit: Remove silly extension method
Date Wed, 10 Sep 2014 01:55:14 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master fd0a0811f -> 4986b22eb


Remove silly extension method


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

Branch: refs/heads/master
Commit: 4986b22eb29ed7d94b7a0b1799e72f3293032127
Parents: fd0a081
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Wed Sep 10 04:54:20 2014 +0300
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Wed Sep 10 04:54:20 2014 +0300

----------------------------------------------------------------------
 src/Lucene.Net.Core/Codecs/DocValuesConsumer.cs         |  1 +
 src/Lucene.Net.Core/Index/CompositeReaderContext.cs     |  1 +
 src/Lucene.Net.Core/Index/SegmentDocValues.cs           |  1 +
 src/Lucene.Net.Core/Search/DisjunctionMaxQuery.cs       |  1 +
 src/Lucene.Net.Core/Search/FieldCacheImpl.cs            |  1 +
 src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs            |  1 +
 src/Lucene.Net.Core/Search/MinShouldMatchSumScorer.cs   |  1 +
 src/Lucene.Net.Core/Store/RAMDirectory.cs               |  1 +
 src/Lucene.Net.Core/Support/ListExtensions.cs           | 11 -----------
 src/Lucene.Net.Tests/core/Index/TestMaxTermFrequency.cs |  1 +
 src/Lucene.Net.Tests/core/Search/TestMinShouldMatch2.cs |  1 +
 11 files changed, 10 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Core/Codecs/DocValuesConsumer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Codecs/DocValuesConsumer.cs b/src/Lucene.Net.Core/Codecs/DocValuesConsumer.cs
index 29f0293..324c8d9 100644
--- a/src/Lucene.Net.Core/Codecs/DocValuesConsumer.cs
+++ b/src/Lucene.Net.Core/Codecs/DocValuesConsumer.cs
@@ -1,3 +1,4 @@
+using System.Linq;
 using Lucene.Net.Support;
 using System;
 using System.Collections.Generic;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Core/Index/CompositeReaderContext.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/CompositeReaderContext.cs b/src/Lucene.Net.Core/Index/CompositeReaderContext.cs
index aa03541..f971d7a 100644
--- a/src/Lucene.Net.Core/Index/CompositeReaderContext.cs
+++ b/src/Lucene.Net.Core/Index/CompositeReaderContext.cs
@@ -1,3 +1,4 @@
+using System.Linq;
 using Lucene.Net.Support;
 using System.Collections.Generic;
 using System.Diagnostics;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Core/Index/SegmentDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/SegmentDocValues.cs b/src/Lucene.Net.Core/Index/SegmentDocValues.cs
index c68d35a..2e77759 100644
--- a/src/Lucene.Net.Core/Index/SegmentDocValues.cs
+++ b/src/Lucene.Net.Core/Index/SegmentDocValues.cs
@@ -2,6 +2,7 @@ using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.Globalization;
+using System.Linq;
 
 namespace Lucene.Net.Index
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Core/Search/DisjunctionMaxQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/DisjunctionMaxQuery.cs b/src/Lucene.Net.Core/Search/DisjunctionMaxQuery.cs
index 3b1a154..b0689ab 100644
--- a/src/Lucene.Net.Core/Search/DisjunctionMaxQuery.cs
+++ b/src/Lucene.Net.Core/Search/DisjunctionMaxQuery.cs
@@ -1,5 +1,6 @@
 using System;
 using System.Collections.Generic;
+using System.Linq;
 using System.Text;
 
 namespace Lucene.Net.Search

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Core/Search/FieldCacheImpl.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/FieldCacheImpl.cs b/src/Lucene.Net.Core/Search/FieldCacheImpl.cs
index e509841..668ab40 100644
--- a/src/Lucene.Net.Core/Search/FieldCacheImpl.cs
+++ b/src/Lucene.Net.Core/Search/FieldCacheImpl.cs
@@ -1,6 +1,7 @@
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
+using System.Linq;
 
 namespace Lucene.Net.Search
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
index 33d4bf9..f1f071d 100644
--- a/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
+++ b/src/Lucene.Net.Core/Search/FuzzyTermsEnum.cs
@@ -2,6 +2,7 @@ using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.IO;
+using System.Linq;
 
 namespace Lucene.Net.Search
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Core/Search/MinShouldMatchSumScorer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/MinShouldMatchSumScorer.cs b/src/Lucene.Net.Core/Search/MinShouldMatchSumScorer.cs
index d0aed80..3ddba73 100644
--- a/src/Lucene.Net.Core/Search/MinShouldMatchSumScorer.cs
+++ b/src/Lucene.Net.Core/Search/MinShouldMatchSumScorer.cs
@@ -1,6 +1,7 @@
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
+using System.Linq;
 
 namespace Lucene.Net.Search
 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Core/Store/RAMDirectory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/RAMDirectory.cs b/src/Lucene.Net.Core/Store/RAMDirectory.cs
index 71ab6fc..83da12a 100644
--- a/src/Lucene.Net.Core/Store/RAMDirectory.cs
+++ b/src/Lucene.Net.Core/Store/RAMDirectory.cs
@@ -1,3 +1,4 @@
+using System.Linq;
 using Lucene.Net.Support;
 using Lucene.Net.Support.Compatibility;
 using System.Collections.Concurrent;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Core/Support/ListExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/ListExtensions.cs b/src/Lucene.Net.Core/Support/ListExtensions.cs
index 7a90720..697a6f7 100644
--- a/src/Lucene.Net.Core/Support/ListExtensions.cs
+++ b/src/Lucene.Net.Core/Support/ListExtensions.cs
@@ -33,17 +33,6 @@ namespace Lucene.Net.Support
             return new SubList<T>(list, fromIndex, toIndex);
         }
 
-        public static T[] ToArray<T>(this IList<T> list)
-        {
-            if (list is Array) return (T[])list;
-
-            T[] retval = new T[list.Count];
-            for (int i = 0; i < retval.Length; i++)
-                retval[i] = list[i];
-
-            return retval;
-        }
-
         public static IList<T> Swap<T>(this IList<T> list, int indexA,
int indexB)
         {
             T tmp = list[indexA];

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Tests/core/Index/TestMaxTermFrequency.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestMaxTermFrequency.cs b/src/Lucene.Net.Tests/core/Index/TestMaxTermFrequency.cs
index 1717746..93f2751 100644
--- a/src/Lucene.Net.Tests/core/Index/TestMaxTermFrequency.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestMaxTermFrequency.cs
@@ -1,5 +1,6 @@
 using System;
 using System.Collections.Generic;
+using System.Linq;
 using Lucene.Net.Documents;
 
 namespace Lucene.Net.Index

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4986b22e/src/Lucene.Net.Tests/core/Search/TestMinShouldMatch2.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestMinShouldMatch2.cs b/src/Lucene.Net.Tests/core/Search/TestMinShouldMatch2.cs
index 66fe1da..794385f 100644
--- a/src/Lucene.Net.Tests/core/Search/TestMinShouldMatch2.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestMinShouldMatch2.cs
@@ -1,3 +1,4 @@
+using System.Linq;
 using Lucene.Net.Documents;
 using Lucene.Net.Index;
 using System.Collections.Generic;


Mime
View raw message