lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [3/9] lucenenet git commit: API: Lucene.Net.Store.Directory.IndexInputSlicer: Removed unnecessary constructor and private variable that were not in use.
Date Thu, 13 Jul 2017 18:35:58 GMT
API: Lucene.Net.Store.Directory.IndexInputSlicer: Removed unnecessary constructor and private
variable that were not in use.


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

Branch: refs/heads/master
Commit: de62e95746f23d6026412e22c6f724fed03b5fa7
Parents: c0e7a25
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Jul 13 23:53:55 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Jul 13 23:53:55 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs | 1 -
 src/Lucene.Net/Store/CompoundFileDirectory.cs              | 1 -
 src/Lucene.Net/Store/Directory.cs                          | 8 --------
 src/Lucene.Net/Store/MMapDirectory.cs                      | 1 -
 src/Lucene.Net/Store/NIOFSDirectory.cs                     | 5 ++---
 src/Lucene.Net/Store/SimpleFSDirectory.cs                  | 5 ++---
 6 files changed, 4 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/de62e957/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs b/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs
index a333d93..6011990 100644
--- a/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs
+++ b/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs
@@ -1345,7 +1345,6 @@ namespace Lucene.Net.Store
             private IndexInputSlicer DelegateHandle;
 
             public IndexInputSlicerAnonymousInnerClassHelper(MockDirectoryWrapper outerInstance,
string name, IndexInputSlicer delegateHandle)
-                : base(outerInstance)
             {
                 this.OuterInstance = outerInstance;
                 this.Name = name;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/de62e957/src/Lucene.Net/Store/CompoundFileDirectory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Store/CompoundFileDirectory.cs b/src/Lucene.Net/Store/CompoundFileDirectory.cs
index 53682b2..0b53e9b 100644
--- a/src/Lucene.Net/Store/CompoundFileDirectory.cs
+++ b/src/Lucene.Net/Store/CompoundFileDirectory.cs
@@ -442,7 +442,6 @@ namespace Lucene.Net.Store
             private FileEntry entry;
 
             public IndexInputSlicerAnonymousInnerClassHelper(CompoundFileDirectory outerInstance,
FileEntry entry)
-                : base(outerInstance)
             {
                 this.outerInstance = outerInstance;
                 this.entry = entry;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/de62e957/src/Lucene.Net/Store/Directory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Store/Directory.cs b/src/Lucene.Net/Store/Directory.cs
index 7ca06b3..24b7bb8 100644
--- a/src/Lucene.Net/Store/Directory.cs
+++ b/src/Lucene.Net/Store/Directory.cs
@@ -263,7 +263,6 @@ namespace Lucene.Net.Store
             private IOContext context;
 
             public IndexInputSlicerAnonymousInnerClassHelper(Directory outerInstance, string
name, IOContext context)
-                : base(outerInstance)
             {
                 this.outerInstance = outerInstance;
                 this.name = name;
@@ -311,13 +310,6 @@ namespace Lucene.Net.Store
 #endif
         public abstract class IndexInputSlicer : IDisposable
         {
-            private readonly Directory outerInstance;
-
-            public IndexInputSlicer(Directory outerInstance)
-            {
-                this.outerInstance = outerInstance;
-            }
-
             /// <summary>
             /// Returns an <see cref="IndexInput"/> slice starting at the given offset
with the given length.
             /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/de62e957/src/Lucene.Net/Store/MMapDirectory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Store/MMapDirectory.cs b/src/Lucene.Net/Store/MMapDirectory.cs
index 68eebf6..b116b90 100644
--- a/src/Lucene.Net/Store/MMapDirectory.cs
+++ b/src/Lucene.Net/Store/MMapDirectory.cs
@@ -240,7 +240,6 @@ namespace Lucene.Net.Store
             private MMapIndexInput full;
 
             public IndexInputSlicerAnonymousInnerClassHelper(MMapDirectory outerInstance,
MMapIndexInput full)
-                : base(outerInstance)
             {
                 this.outerInstance = outerInstance;
                 this.full = full;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/de62e957/src/Lucene.Net/Store/NIOFSDirectory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Store/NIOFSDirectory.cs b/src/Lucene.Net/Store/NIOFSDirectory.cs
index 5ce4d81..74adff4 100644
--- a/src/Lucene.Net/Store/NIOFSDirectory.cs
+++ b/src/Lucene.Net/Store/NIOFSDirectory.cs
@@ -116,7 +116,7 @@ namespace Lucene.Net.Store
             EnsureOpen();
             var path = new FileInfo(Path.Combine(Directory.FullName, name));
             var fc = new FileStream(path.FullName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite
| FileShare.Delete);
-            return new IndexInputSlicerAnonymousInnerClassHelper(this, context, path, fc);
+            return new IndexInputSlicerAnonymousInnerClassHelper(context, path, fc);
         }
 
 #if FEATURE_SERIALIZABLE
@@ -128,8 +128,7 @@ namespace Lucene.Net.Store
             private readonly FileInfo path;
             private readonly FileStream descriptor;
 
-            public IndexInputSlicerAnonymousInnerClassHelper(NIOFSDirectory outerInstance,
IOContext context, FileInfo path, FileStream descriptor)
-                : base(outerInstance)
+            public IndexInputSlicerAnonymousInnerClassHelper(IOContext context, FileInfo
path, FileStream descriptor)
             {
                 this.context = context;
                 this.path = path;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/de62e957/src/Lucene.Net/Store/SimpleFSDirectory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Store/SimpleFSDirectory.cs b/src/Lucene.Net/Store/SimpleFSDirectory.cs
index 28d5e51..2d5b8ac 100644
--- a/src/Lucene.Net/Store/SimpleFSDirectory.cs
+++ b/src/Lucene.Net/Store/SimpleFSDirectory.cs
@@ -94,7 +94,7 @@ namespace Lucene.Net.Store
             EnsureOpen();
             var file = new FileInfo(Path.Combine(Directory.FullName, name));
             var descriptor = new FileStream(file.FullName, FileMode.Open, FileAccess.Read,
FileShare.ReadWrite);
-            return new IndexInputSlicerAnonymousInnerClassHelper(this, context, file, descriptor);
+            return new IndexInputSlicerAnonymousInnerClassHelper(context, file, descriptor);
         }
 
         private class IndexInputSlicerAnonymousInnerClassHelper : IndexInputSlicer
@@ -103,8 +103,7 @@ namespace Lucene.Net.Store
             private readonly FileInfo file;
             private readonly FileStream descriptor;
 
-            public IndexInputSlicerAnonymousInnerClassHelper(SimpleFSDirectory outerInstance,
IOContext context, FileInfo file, FileStream descriptor)
-                : base(outerInstance)
+            public IndexInputSlicerAnonymousInnerClassHelper(IOContext context, FileInfo
file, FileStream descriptor)
             {
                 this.context = context;
                 this.file = file;


Mime
View raw message