Skip to content

Commit 944b162

Browse files
committed
Removed unused interfaces
1 parent dde2a5b commit 944b162

File tree

4 files changed

+3
-20
lines changed

4 files changed

+3
-20
lines changed

src/Nest/DSL/IActAsQuery.cs

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/Nest/DSL/IActAsSearchDescriptor.cs

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/Nest/DSL/PutWarmerDescriptor.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ namespace Nest
1717
public partial class PutWarmerDescriptor :
1818
IndicesOptionalTypesNamePathDecriptor<PutWarmerDescriptor, PutWarmerRequestParameters>
1919
, IPathInfo<PutWarmerRequestParameters>
20-
, IActAsSearchDescriptor
2120
, ICustomJson
2221
{
23-
SearchDescriptorBase IActAsSearchDescriptor._SearchDescriptor { get; set; }
22+
private SearchDescriptorBase _searchDescriptor { get; set; }
2423

2524
public PutWarmerDescriptor Search<T>(Func<SearchDescriptor<T>, SearchDescriptor<T>> selector)
2625
where T : class
2726
{
28-
((IActAsSearchDescriptor)this)._SearchDescriptor = selector(new SearchDescriptor<T>());
27+
this._searchDescriptor = selector(new SearchDescriptor<T>());
2928
return this;
3029
}
3130

@@ -38,7 +37,7 @@ ElasticsearchPathInfo<PutWarmerRequestParameters> IPathInfo<PutWarmerRequestPara
3837
}
3938
object ICustomJson.GetCustomJson()
4039
{
41-
return ((IActAsSearchDescriptor)this)._SearchDescriptor;
40+
return this._searchDescriptor;
4241
}
4342
}
4443
}

src/Nest/Nest.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@
242242
<Compile Include="DSL\DeleteTemplateDescriptor.cs" />
243243
<Compile Include="DSL\GetTemplateDescriptor.cs" />
244244
<Compile Include="DSL\DeleteWarmerDescriptor.cs" />
245-
<Compile Include="DSL\IActAsSearchDescriptor.cs" />
246245
<Compile Include="Domain\DSL\IPathInfo.cs" />
247246
<Compile Include="DSL\Paths\IndexNamePathDescriptor.cs" />
248247
<Compile Include="DSL\Paths\NamePathDescriptor.cs" />
@@ -251,7 +250,6 @@
251250
<Compile Include="DSL\RefreshDescriptor.cs" />
252251
<Compile Include="DSL\OptimizeDescriptor.cs" />
253252
<Compile Include="DSL\GatewaySnapshotDescriptor.cs" />
254-
<Compile Include="DSL\IActAsQuery.cs" />
255253
<Compile Include="DSL\OpenIndexDescriptor.cs" />
256254
<Compile Include="DSL\FluentDictionary.cs" />
257255
<Compile Include="DSL\Paths\IndexPathDescriptor.cs" />

0 commit comments

Comments
 (0)