Skip to content

Commit

Permalink
Minor tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisspyB committed Dec 9, 2024
1 parent d910428 commit c88c79a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/gribjump/Engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ TaskOutcome<size_t> Engine::scan(const MarsRequests& requests, bool byfiles) {

std::vector<eckit::URI> uris = FDBLister::instance().URIs(requests);

// XXX do we explicitly need this?
/// @todo do we explicitly need this?
if (uris.empty()) {
MetricsManager::instance().set("count_scanned_fields", 0);
return {0, TaskReport()};
Expand Down
1 change: 0 additions & 1 deletion src/gribjump/Engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class Engine {
Engine();
~Engine();

// ResultsMap extract(ExtractionRequests& requests);
TaskOutcome<ResultsMap> extract(ExtractionRequests& requests);

// byfiles: scan entire file, not just fields matching request
Expand Down
4 changes: 0 additions & 4 deletions src/gribjump/LocalGribJump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ ResultsMap LocalGribJump::extract(const std::vector<std::string>& requests, cons
}

std::map<std::string, std::unordered_set<std::string>> LocalGribJump::axes(const std::string& request, int level) {

// Note: This is likely to be removed from GribJump, and moved to FDB.
// Here for now to support polytope.

return Engine().axes(request, level);
}

Expand Down
6 changes: 3 additions & 3 deletions src/gribjump/remote/Request.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace gribjump {
//----------------------------------------------------------------------------------------------------------------------

class Request {
public: // methods
public:

Request(eckit::Stream& stream);

Expand All @@ -45,8 +45,8 @@ class Request {
protected: // members

eckit::Stream& client_;
Engine engine_; //< Engine and schedule tasks based on request // XXX Can we now remove this?
TaskReport report_; //
Engine engine_;
TaskReport report_;
uint64_t id_;
};

Expand Down

0 comments on commit c88c79a

Please sign in to comment.