Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
J5lx committed Aug 8, 2023
1 parent 4078cec commit b4f5de3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
26 changes: 0 additions & 26 deletions core_lib/src/graphics/bitmap/bitmapbucket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,29 +187,3 @@ BitmapImage BitmapBucket::flattenBitmapLayersToImage()
}
return flattenImage;
}

std::pair<Layer*, int> BitmapBucket::findBitmapLayerBelow(Layer* targetLayer, int layerIndex) const
{
bool foundLayerBelow = false;
int layerBelowIndex = layerIndex;
for (int i = layerIndex - 1; i >= 0; i--)
{
Layer* searchlayer = mEditor->layers()->getLayer(i);
Q_ASSERT(searchlayer);

if (searchlayer->type() == Layer::BITMAP && searchlayer->visible())
{
targetLayer = searchlayer;
foundLayerBelow = true;
layerBelowIndex = i;
break;
}
}

if (foundLayerBelow && !targetLayer->keyExists(mEditor->currentFrame()))
{
targetLayer->addNewKeyFrameAt(mEditor->currentFrame());
emit mEditor->updateTimeLine();
}
return std::make_pair(targetLayer, layerBelowIndex);
}
1 change: 0 additions & 1 deletion core_lib/src/graphics/bitmap/bitmapbucket.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class BitmapBucket
*/
bool allowFill(const QPoint& checkPoint) const;

std::pair<Layer*, int> findBitmapLayerBelow(Layer* targetLayer, int layerIndex) const;
BitmapImage flattenBitmapLayersToImage();

Editor* mEditor = nullptr;
Expand Down

0 comments on commit b4f5de3

Please sign in to comment.