Skip to content

Commit 2a37a78

Browse files
committed
Remove unused change-context props
1 parent be7660f commit 2a37a78

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/SIL.Harmony/Changes/ChangeContext.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,15 @@ internal class ChangeContext : IChangeContext
77
private readonly SnapshotWorker _worker;
88
private readonly CrdtConfig _crdtConfig;
99

10-
internal ChangeContext(Commit commit, int commitIndex, IDictionary<Guid, ObjectSnapshot> intermediateSnapshots, SnapshotWorker worker, CrdtConfig crdtConfig)
10+
internal ChangeContext(Commit commit, SnapshotWorker worker, CrdtConfig crdtConfig)
1111
{
1212
_worker = worker;
1313
_crdtConfig = crdtConfig;
1414
Commit = commit;
15-
CommitIndex = commitIndex;
16-
IntermediateSnapshots = intermediateSnapshots;
1715
}
1816

1917
CommitBase IChangeContext.Commit => Commit;
2018
public Commit Commit { get; }
21-
public int CommitIndex { get; }
22-
public IDictionary<Guid, ObjectSnapshot> IntermediateSnapshots { get; }
2319
public async ValueTask<IObjectSnapshot?> GetSnapshot(Guid entityId) => await _worker.GetSnapshot(entityId);
2420
public IAsyncEnumerable<object> GetObjectsReferencing(Guid entityId, bool includeDeleted = false)
2521
{

src/SIL.Harmony/SnapshotWorker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private async ValueTask ApplyCommitChanges(IEnumerable<Commit> commits, bool upd
132132
{
133133
IObjectBase entity;
134134
var prevSnapshot = await GetSnapshot(commitChange.EntityId);
135-
var changeContext = new ChangeContext(commit, commitIndex, intermediateSnapshots, this, _crdtConfig);
135+
var changeContext = new ChangeContext(commit, this, _crdtConfig);
136136
bool wasDeleted;
137137
if (prevSnapshot is not null)
138138
{

0 commit comments

Comments
 (0)