mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 14:50:23 +00:00
Removed unused members sound_source::*::add_location.
This commit is contained in:
parent
0788c3d81e
commit
be32933321
@ -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<double>(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_;
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user