Committed by
Sho Shimizu
Remove argument which is not necessarily passed
Change-Id: I87ded889afbb2be2693166de0eb3104a24c82084
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -68,7 +68,7 @@ final class ContinuousResourceAllocation { | ... | @@ -68,7 +68,7 @@ final class ContinuousResourceAllocation { |
68 | return allocations; | 68 | return allocations; |
69 | } | 69 | } |
70 | 70 | ||
71 | - ContinuousResourceAllocation allocate(ContinuousResource original, ResourceAllocation value) { | 71 | + ContinuousResourceAllocation allocate(ResourceAllocation value) { |
72 | return new ContinuousResourceAllocation(original, ImmutableList.<ResourceAllocation>builder() | 72 | return new ContinuousResourceAllocation(original, ImmutableList.<ResourceAllocation>builder() |
73 | .addAll(allocations) | 73 | .addAll(allocations) |
74 | .add(value) | 74 | .add(value) | ... | ... |
... | @@ -157,7 +157,7 @@ class TransactionalContinuousResourceSubStore { | ... | @@ -157,7 +157,7 @@ class TransactionalContinuousResourceSubStore { |
157 | return true; | 157 | return true; |
158 | } | 158 | } |
159 | 159 | ||
160 | - ContinuousResourceAllocation newValue = oldValue.allocate(original, value); | 160 | + ContinuousResourceAllocation newValue = oldValue.allocate(value); |
161 | return consumers.replace(original.id(), oldValue, newValue); | 161 | return consumers.replace(original.id(), oldValue, newValue); |
162 | } | 162 | } |
163 | 163 | ... | ... |
-
Please register or login to post a comment