mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Removed no longer used code
This commit is contained in:
parent
3403b42cd8
commit
39367473d2
@ -1090,18 +1090,6 @@ void CAnimation::duplicateImage(const size_t sourceGroup, const size_t sourceFra
|
||||
load(index, targetGroup);
|
||||
}
|
||||
|
||||
void CAnimation::shiftColor(const ColorFilter & shifter)
|
||||
{
|
||||
for(auto groupIter = images.begin(); groupIter != images.end(); groupIter++)
|
||||
{
|
||||
for(auto frameIter = groupIter->second.begin(); frameIter != groupIter->second.end(); frameIter++)
|
||||
{
|
||||
std::shared_ptr<IImage> image = frameIter->second;
|
||||
image->adjustPalette(shifter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CAnimation::setCustom(std::string filename, size_t frame, size_t group)
|
||||
{
|
||||
if (source[group].size() <= frame)
|
||||
|
@ -122,9 +122,6 @@ public:
|
||||
//and loads it if animation is preloaded
|
||||
void duplicateImage(const size_t sourceGroup, const size_t sourceFrame, const size_t targetGroup);
|
||||
|
||||
// adjust the color of the animation, used in battle spell effects, e.g. Cloned objects
|
||||
void shiftColor(const ColorFilter & shifter);
|
||||
|
||||
//add custom surface to the selected position.
|
||||
void setCustom(std::string filename, size_t frame, size_t group=0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user