From 9c55b68e8a7ff8665c5b144f3be2ea26e1a909cb Mon Sep 17 00:00:00 2001 From: AlexanderSinn Date: Tue, 23 Jul 2024 03:33:43 +0200 Subject: [PATCH] fix unused parameter warning --- src/laser/Laser.H | 2 +- src/laser/Laser.cpp | 2 +- src/laser/MultiLaser.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/laser/Laser.H b/src/laser/Laser.H index cd4db39466..88245ba456 100644 --- a/src/laser/Laser.H +++ b/src/laser/Laser.H @@ -19,7 +19,7 @@ class Laser { public: - Laser (std::string name, bool laser_from_file); + Laser (std::string name); std::string m_name {""}; /** The way to initialize a laser (from_file/gaussian/parser)*/ diff --git a/src/laser/Laser.cpp b/src/laser/Laser.cpp index acee4a4316..f3a0e5a4ab 100644 --- a/src/laser/Laser.cpp +++ b/src/laser/Laser.cpp @@ -14,7 +14,7 @@ #include #include -Laser::Laser (std::string name, bool laser_from_file) +Laser::Laser (std::string name) { m_name = name; amrex::ParmParse pp(m_name); diff --git a/src/laser/MultiLaser.cpp b/src/laser/MultiLaser.cpp index 3510971966..0a8a6f7951 100644 --- a/src/laser/MultiLaser.cpp +++ b/src/laser/MultiLaser.cpp @@ -37,7 +37,7 @@ MultiLaser::ReadParameters () m_nlasers = m_names.size(); for (int i = 0; i < m_nlasers; ++i) { - m_all_lasers.emplace_back(Laser(m_names[i], m_laser_from_file)); + m_all_lasers.emplace_back(Laser(m_names[i])); } if (!m_laser_from_file) {