Skip to content

Commit 55cbde9

Browse files
committed
DEL: Remove unused received variant
1 parent 0d630b0 commit 55cbde9

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.41.0 - TBD
4+
5+
### Breaking changes
6+
- Removed unused `Received` variant from `JobState` enum
7+
38
## 0.40.0 - 2025-07-29
49

510
### Enhancements

include/databento/enums.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ enum class Delivery : std::uint8_t {
3434

3535
// The current state of a batch job.
3636
enum class JobState : std::uint8_t {
37-
Received,
3837
Queued,
3938
Processing,
4039
Done,

src/enums.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ const char* ToString(Delivery delivery) {
7070

7171
const char* ToString(JobState state) {
7272
switch (state) {
73-
case JobState::Received: {
74-
return "received";
75-
}
7673
case JobState::Queued: {
7774
return "queued";
7875
}
@@ -957,9 +954,6 @@ Delivery FromString(const std::string& str) {
957954

958955
template <>
959956
JobState FromString(const std::string& str) {
960-
if (str == "received") {
961-
return JobState::Received;
962-
}
963957
if (str == "queued") {
964958
return JobState::Queued;
965959
}

src/historical.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ databento::BatchJob Historical::BatchSubmitJob(const httplib::Params& params) {
227227

228228
std::vector<databento::BatchJob> Historical::BatchListJobs() {
229229
static const std::vector<JobState> kDefaultStates = {
230-
JobState::Received, JobState::Queued, JobState::Processing, JobState::Done};
230+
JobState::Queued, JobState::Processing, JobState::Done};
231231
return this->BatchListJobs(kDefaultStates, UnixNanos{});
232232
}
233233
std::vector<databento::BatchJob> Historical::BatchListJobs(

0 commit comments

Comments
 (0)