diff --git a/force-app/main/default/classes/collection/SObjectCollection.cls b/force-app/main/default/classes/collection/SObjectCollection.cls index f0fbc3a..f858bbe 100644 --- a/force-app/main/default/classes/collection/SObjectCollection.cls +++ b/force-app/main/default/classes/collection/SObjectCollection.cls @@ -29,16 +29,6 @@ public with sharing class SObjectCollection { return typedList; } - public Set asSet() { - return new Set(this.records); - } - - public Set asSet(Type setType) { - Set typedSet = (Set) setType.newInstance(); - typedSet.addAll(this.records); - return typedSet; - } - public Map asMap() { return new Map(this.records); } diff --git a/force-app/main/default/classes/test/classes/collection/SObjectCollectionTest.cls b/force-app/main/default/classes/test/classes/collection/SObjectCollectionTest.cls index f77d029..1076547 100644 --- a/force-app/main/default/classes/test/classes/collection/SObjectCollectionTest.cls +++ b/force-app/main/default/classes/test/classes/collection/SObjectCollectionTest.cls @@ -16,6 +16,7 @@ private class SObjectCollectionTest { @IsTest private static void collectionCanBeInstantiatedFromAList() { SObjectCollection c = SObjectCollection.of(new List{new Account(Name = 'Foo'), new Account(Name = 'Bar')}); + System.Assert.isNotNull(c); } @IsTest