Skip to content

Commit 698fa67

Browse files
committed
Remove getFirstObject method
1 parent fbc113f commit 698fa67

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

sfdx-source/apex-common/main/classes/fflib_IObjects.cls

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ public interface fflib_IObjects extends fflib_IDomain
7777
*/
7878
Boolean isNotEmpty();
7979

80-
/**
81-
* @return Returns the first object of the domain
82-
*/
83-
Object getFirstObject();
84-
8580
/**
8681
* @return Returns the amount of records contained in the domain
8782
*/

sfdx-source/apex-common/main/classes/fflib_Objects.cls

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,6 @@ public virtual class fflib_Objects implements fflib_IObjects
101101
return !isEmpty();
102102
}
103103

104-
public Object getFirstObject()
105-
{
106-
if (isEmpty()) return null;
107-
108-
return getObjects().get(0);
109-
}
110-
111104
public Integer size()
112105
{
113106
return getObjects().size();

sfdx-source/apex-common/test/classes/fflib_ObjectsTest.cls

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,6 @@ private class fflib_ObjectsTest
151151
);
152152
}
153153

154-
@IsTest
155-
static void itShouldGetTheFirstObject()
156-
{
157-
fflib_ObjectsTest.Domain dtoDomain = generateDomain();
158-
System.assertEquals(TRANSFER_OBJECT_A, dtoDomain.getFirstObject(), 'Incorrect object returned, expected first');
159-
}
160-
161154
@IsTest
162155
static void itShouldGetTheObjectType()
163156
{

0 commit comments

Comments
 (0)