diff --git a/src/soundsource.cpp b/src/soundsource.cpp index 8abc387452e..c3124c952a1 100644 --- a/src/soundsource.cpp +++ b/src/soundsource.cpp @@ -95,16 +95,6 @@ void manager::update_positions() } } -void manager::add_location(const std::string &id, const map_location &loc) -{ - positional_source_iterator it = sources_.find(id); - - if(it == sources_.end()) - return; - else - (*it).second->add_location(loc); -} - void manager::write_sourcespecs(config& cfg) const { for(positional_source_const_iterator i = sources_.begin(); i != sources_.end(); ++i) { @@ -223,11 +213,6 @@ int positional_source::calculate_volume(const map_location &loc, const display & / static_cast(faderange_)) * DISTANCE_SILENT)); } -void positional_source::add_location(const map_location &loc) -{ - locations_.push_back(loc); -} - void positional_source::write_config(config& cfg) const { cfg["sounds"] = this->files_; diff --git a/src/soundsource.hpp b/src/soundsource.hpp index b2723773389..ae2c26f658a 100644 --- a/src/soundsource.hpp +++ b/src/soundsource.hpp @@ -67,10 +67,6 @@ public: void update(unsigned int time, const display &disp); void update_positions(unsigned int time, const display &disp); - void add_location(const map_location &loc); - void remove_location(const map_location &loc); - void replace_location(const map_location &oldloc, const map_location &newloc); - int calculate_volume(const map_location &loc, const display &disp); /** @@ -101,8 +97,6 @@ public: void remove(const std::string &id); void update(); - void add_location(const std::string &id, const map_location &loc); - // checks which sound sources are visible void update_positions(); @@ -181,10 +175,6 @@ public: return locations_; } - void add_location(const map_location& loc) { - locations_.push_back(loc); - } - int full_range() const { return range_; } void set_full_range(int value) {