Skip to content

Commit 36754a7

Browse files
committed
chore: rm unused properties, spacing
1 parent 34d67f7 commit 36754a7

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/JsonApiDotNetCore/Hooks/ResourceHookExecutor.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,6 @@ namespace JsonApiDotNetCore.Services
1515
public class ResourceHookExecutor : IResourceHookExecutor
1616
{
1717
public static readonly IdentifiableComparer Comparer = new IdentifiableComparer();
18-
public static readonly ResourceAction[] SingleActions =
19-
{
20-
ResourceAction.GetSingle,
21-
ResourceAction.Create,
22-
ResourceAction.Delete,
23-
ResourceAction.Patch,
24-
ResourceAction.GetRelationship,
25-
ResourceAction.PatchRelationship
26-
};
27-
public static readonly ResourceHook[] ImplicitUpdateHooks =
28-
{
29-
ResourceHook.BeforeCreate,
30-
ResourceHook.BeforeUpdate,
31-
ResourceHook.BeforeDelete
32-
};
3318
protected readonly EntityTreeLayerFactory _layerFactory;
3419
protected readonly IHookExecutorHelper _meta;
3520
protected readonly IJsonApiContext _context;
@@ -209,7 +194,6 @@ public virtual IEnumerable<TEntity> BeforeDelete<TEntity>(IEnumerable<TEntity> e
209194
CallHook(nestedHookcontainer, ResourceHook.BeforeImplicitUpdateRelationship, new object[] { relationshipHelper, pipeline, });
210195
}
211196
}
212-
213197
return entities;
214198

215199
}
@@ -352,9 +336,6 @@ public virtual void AfterDelete<TEntity>(IEnumerable<TEntity> entities, Resource
352336
}
353337
}
354338

355-
356-
357-
358339
RelationshipProxy GetInverseRelationship(RelationshipProxy proxy)
359340
{
360341
return new RelationshipProxy(_graph.GetInverseRelationship(proxy.Attribute), proxy.PrincipalType, false);

0 commit comments

Comments
 (0)