Skip to content

Commit

Permalink
Remove unnecessary and unused concept API
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 11, 2024
1 parent 55a6e92 commit a977956
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions include/podio/Writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ class Writer {
struct WriterConcept {
virtual ~WriterConcept() = default;

virtual void writeFrame(const podio::Frame& frame, const std::string& category) = 0;
virtual void writeFrame(const podio::Frame& frame, const std::string& category,
const std::vector<std::string>& collections) = 0;
virtual void writeEvent(const podio::Frame& frame) = 0;
virtual void writeEvent(const podio::Frame& frame, const std::vector<std::string>& collections) = 0;
virtual void finish() = 0;
};

Expand All @@ -31,19 +28,10 @@ class Writer {

~WriterModel() = default;

void writeFrame(const podio::Frame& frame, const std::string& category) override {
return m_writer->writeFrame(frame, category);
}
void writeFrame(const podio::Frame& frame, const std::string& category,
const std::vector<std::string>& collections) override {
return m_writer->writeFrame(frame, category, collections);
}
void writeEvent(const podio::Frame& frame) override {
return writeFrame(frame, podio::Category::Event);
}
void writeEvent(const podio::Frame& frame, const std::vector<std::string>& collections) override {
return writeFrame(frame, podio::Category::Event, collections);
}
void finish() override {
return m_writer->finish();
}
Expand All @@ -65,16 +53,16 @@ class Writer {
~Writer() = default;

void writeFrame(const podio::Frame& frame, const std::string& category) {
return m_self->writeFrame(frame, category);
return m_self->writeFrame(frame, category, frame.getAvailableCollections());
}
void writeFrame(const podio::Frame& frame, const std::string& category, const std::vector<std::string>& collections) {
return m_self->writeFrame(frame, category, collections);
}
void writeEvent(const podio::Frame& frame) {
return writeFrame(frame, podio::Category::Event);
writeFrame(frame, podio::Category::Event, frame.getAvailableCollections());
}
void writeEvent(const podio::Frame& frame, const std::vector<std::string>& collections) {
return writeFrame(frame, podio::Category::Event, collections);
writeFrame(frame, podio::Category::Event, collections);
}
void finish() {
return m_self->finish();
Expand Down

0 comments on commit a977956

Please sign in to comment.