Skip to content

Commit 3d09799

Browse files
committed
Remove unused method
1 parent cc228c7 commit 3d09799

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

library/agent/AIStatistics.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ t.test("it initializes with empty state", async () => {
66

77
t.same(stats.getStats(), []);
88
t.equal(stats.isEmpty(), true);
9-
t.equal(stats.hasStats(), false);
109
});
1110

1211
t.test("it tracks basic AI calls", async () => {
@@ -33,7 +32,6 @@ t.test("it tracks basic AI calls", async () => {
3332
});
3433

3534
t.equal(stats.isEmpty(), false);
36-
t.equal(stats.hasStats(), true);
3735
});
3836

3937
t.test("it tracks multiple calls to the same provider/model", async () => {
@@ -154,13 +152,11 @@ t.test("it resets all statistics", async () => {
154152
});
155153

156154
t.equal(stats.isEmpty(), false);
157-
t.equal(stats.hasStats(), true);
158155
t.equal(stats.getStats().length, 2);
159156

160157
stats.reset();
161158

162159
t.equal(stats.isEmpty(), true);
163-
t.equal(stats.hasStats(), false);
164160
t.same(stats.getStats(), []);
165161
});
166162

library/agent/AIStatistics.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,4 @@ export class AIStatistics {
8686
isEmpty(): boolean {
8787
return this.calls.size === 0;
8888
}
89-
90-
hasStats(): boolean {
91-
return !this.isEmpty();
92-
}
9389
}

0 commit comments

Comments
 (0)