Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
warp-core committed Apr 5, 2024
1 parent 10f3744 commit 4accbf4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 1 addition & 11 deletions source/Armament.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ namespace {


Armament::Armament(const Armament &other)
: streamReload(other.streamReload)
, hardpoints(other.hardpoints)
: streamReload(other.streamReload), hardpoints(other.hardpoints)
{
RecreateViewsAndRanges();
}
Expand Down Expand Up @@ -392,15 +391,6 @@ void Armament::Fire(unsigned index, Ship &ship, vector<Projectile> &projectiles,



void Armament::Fire(const Hardpoint &hardpoint, Ship &ship, std::vector<Projectile> &projectiles,
std::vector<Visual> &visuals, bool jammed)
{
int index = WeaponIndex(hardpoint);
Fire(index, ship, projectiles, visuals, jammed);
}



bool Armament::FireAntiMissile(unsigned index, Ship &ship, const Projectile &projectile,
vector<Visual> &visuals, bool jammed)
{
Expand Down
2 changes: 0 additions & 2 deletions source/Armament.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ class Armament {
// Fire the given weapon, if it is ready. If it did not fire because it is
// not ready, return false.
void Fire(unsigned index, Ship &ship, std::vector<Projectile> &projectiles, std::vector<Visual> &visuals, bool jammed);
void Fire(const Hardpoint &hardpoint, Ship &ship, std::vector<Projectile> &projectiles,
std::vector<Visual> &visuals, bool jammed);
// Fire the given anti-missile system.
bool FireAntiMissile(unsigned index, Ship &ship, const Projectile &projectile,
std::vector<Visual> &visuals, bool jammed);
Expand Down

0 comments on commit 4accbf4

Please sign in to comment.