From 1de042d21b9b82a846b09de00cd319210fa94fdc Mon Sep 17 00:00:00 2001
From: Remy Prechelt <prechelt@hawaii.edu>
Date: Tue, 1 Jun 2021 22:11:33 -1000
Subject: [PATCH] Delete specialized writers.

---
 .../modules/writers/EnergyLossWriterOff.hpp   | 69 -------------------
 .../writers/LongitudinalProfileWriterOff.hpp  | 56 ---------------
 corsika/modules/writers/TrackWriterOff.hpp    | 60 ----------------
 3 files changed, 185 deletions(-)
 delete mode 100644 corsika/modules/writers/EnergyLossWriterOff.hpp
 delete mode 100644 corsika/modules/writers/LongitudinalProfileWriterOff.hpp
 delete mode 100644 corsika/modules/writers/TrackWriterOff.hpp

diff --git a/corsika/modules/writers/EnergyLossWriterOff.hpp b/corsika/modules/writers/EnergyLossWriterOff.hpp
deleted file mode 100644
index f921e2b86..000000000
--- a/corsika/modules/writers/EnergyLossWriterOff.hpp
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
- *
- * This software is distributed under the terms of the GNU General Public
- * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
- * the license.
- */
-
-#pragma once
-
-#include <corsika/output/BaseOutput.hpp>
-#include <corsika/framework/core/ParticleProperties.hpp>
-#include <corsika/framework/core/PhysicalUnits.hpp>
-#include <corsika/media/ShowerAxis.hpp>
-
-namespace corsika {
-
-  class EnergyLossWriterOff : public BaseOutput {
-
-  public:
-    /**
-     * Construct a new writer.
-     */
-    EnergyLossWriterOff() = default;
-
-    /**
-     * Called at the start of each library.
-     */
-    void startOfLibrary(boost::filesystem::path const&) final override {}
-
-    /**
-     * Called at the start of each shower.
-     */
-    void startOfShower(unsigned int const) final override {}
-
-    /**
-     * Called at the end of each shower.
-     */
-    void endOfShower(unsigned int const) final override {}
-
-    /**
-     * Called at the end of each library.
-     *
-     * This must also increment the run number since we override
-     * the default behaviour of BaseOutput.
-     */
-    void endOfLibrary() final override {}
-
-    /**
-     * Write a track to the file.
-     */
-    template <typename TTrack>
-    void write(TTrack const&, Code const, HEPEnergyType const) {}
-
-    /**
-     * Add localized energy loss.
-     */
-    void write(Point const&, Code const, HEPEnergyType const) {}
-
-    /**
-     * Add binned energy loss.
-     */
-    void write(GrammageType const, GrammageType const, HEPEnergyType const) {}
-
-    HEPEnergyType getTotal() const { return 0_GeV; }
-
-  }; // namespace corsika
-
-} // namespace corsika
diff --git a/corsika/modules/writers/LongitudinalProfileWriterOff.hpp b/corsika/modules/writers/LongitudinalProfileWriterOff.hpp
deleted file mode 100644
index 2ebe6de12..000000000
--- a/corsika/modules/writers/LongitudinalProfileWriterOff.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
- *
- * This software is distributed under the terms of the GNU General Public
- * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
- * the license.
- */
-
-#pragma once
-
-#include <corsika/output/BaseOutput.hpp>
-#include <corsika/framework/core/ParticleProperties.hpp>
-#include <corsika/framework/core/PhysicalUnits.hpp>
-#include <corsika/media/ShowerAxis.hpp>
-
-namespace corsika {
-
-  class LongitudinalProfileWriterOff : public BaseOutput {
-
-  public:
-    /**
-     * Construct a new writer.
-     */
-    LongitudinalProfileWriterOff() = default;
-
-    /**
-     * Called at the start of each library.
-     */
-    void startOfLibrary(boost::filesystem::path const&) final override {}
-
-    /**
-     * Called at the start of each shower.
-     */
-    void startOfShower(unsigned int const) final override {}
-
-    /**
-     * Called at the end of each shower.
-     */
-    void endOfShower(unsigned int const) final override {}
-
-    /**
-     * Called at the end of each library.
-     *
-     * This must also increment the run number since we override
-     * the default behaviour of BaseOutput.
-     */
-    void endOfLibrary() final override {}
-
-    template <typename TTrack>
-    void write(TTrack const&, Code const, double const) {}
-
-    void write(GrammageType const, GrammageType const, Code const, double const) {}
-
-  }; // namespace corsika
-
-} // namespace corsika
diff --git a/corsika/modules/writers/TrackWriterOff.hpp b/corsika/modules/writers/TrackWriterOff.hpp
deleted file mode 100644
index cbee5584a..000000000
--- a/corsika/modules/writers/TrackWriterOff.hpp
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
- *
- * This software is distributed under the terms of the GNU General Public
- * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
- * the license.
- */
-
-#pragma once
-
-#include <corsika/output/BaseOutput.hpp>
-#include <corsika/framework/core/ParticleProperties.hpp>
-#include <corsika/framework/core/PhysicalUnits.hpp>
-#include <corsika/framework/geometry/QuantityVector.hpp>
-
-namespace corsika {
-
-  class TrackWriterOff : public BaseOutput {
-
-  public:
-    /**
-     * Construct a new writer.
-     *
-     * @param name    The name of this output.
-     */
-    TrackWriterOff() = default;
-
-    /**
-     * Called at the start of each library.
-     */
-    void startOfLibrary(boost::filesystem::path const&) final override {}
-
-    /**
-     * Called at the start of each shower.
-     */
-    void startOfShower(unsigned int const) final override {}
-
-    /**
-     * Called at the end of each shower.
-     */
-    void endOfShower(unsigned int const) final override {}
-
-    /**
-     * Called at the end of each library.
-     *
-     * This must also increment the run number since we override
-     * the default behaviour of BaseOutput.
-     */
-    void endOfLibrary() final override {}
-
-    /**
-     * Write a track to the file.
-     */
-    void write(Code const& pid, units::si::HEPEnergyType const& energy,
-               double const weight, QuantityVector<length_d> const& start,
-               QuantityVector<length_d> const& end) {}
-
-  }; // class TrackWriterOff
-
-} // namespace corsika
-- 
GitLab