Removed unused class

This commit is contained in:
marcin.sciesinski
2019-08-28 11:41:02 -07:00
parent b4e21a9536
commit f8c97b08a1
4 changed files with 2 additions and 28 deletions

View File

@@ -2,7 +2,7 @@ package com.gempukku.lotro.game;
import java.util.Map;
public interface CardCollection extends OwnershipCheck {
public interface CardCollection {
int getCurrency();
Iterable<Item> getAll();

View File

@@ -1,5 +0,0 @@
package com.gempukku.lotro.game;
public interface OwnershipCheck {
public int getItemCount(String blueprintId);
}

View File

@@ -620,9 +620,7 @@ public class HallServer extends AbstractServer {
String blueprintId = cardCount.getKey();
int count = cardCount.getValue();
int owned = 0;
if (ownedCollection != null)
owned = ownedCollection.getItemCount(blueprintId);
int owned = ownedCollection.getItemCount(blueprintId);
int fromOwned = Math.min(owned, count);
for (int i = 0; i < fromOwned; i++)

View File

@@ -1,19 +0,0 @@
package com.gempukku.lotro.hall;
import com.gempukku.lotro.game.OwnershipCheck;
public class MergedOwnershipCheck implements OwnershipCheck {
private OwnershipCheck[] _ownershipChecks;
public MergedOwnershipCheck(OwnershipCheck... ownershipChecks) {
_ownershipChecks = ownershipChecks;
}
@Override
public int getItemCount(String blueprintId) {
int count = 0;
for (OwnershipCheck ownershipCheck : _ownershipChecks)
count += ownershipCheck.getItemCount(blueprintId);
return count;
}
}