mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-12 16:14:10 +00:00
Fix unused variable warnings
This commit is contained in:
parent
8b747b4d09
commit
5e34ae0ce2
@ -207,7 +207,6 @@ private:
|
|||||||
UserData newUserData= m_userDataView.userData();
|
UserData newUserData= m_userDataView.userData();
|
||||||
|
|
||||||
const bool opacityChanged = newOpacity != m_lastValues.opacity;
|
const bool opacityChanged = newOpacity != m_lastValues.opacity;
|
||||||
const bool zIndexChanged = newZIndex != m_lastValues.zIndex;
|
|
||||||
const bool colorChanged = newUserData.color() != m_lastValues.color;
|
const bool colorChanged = newUserData.color() != m_lastValues.color;
|
||||||
const bool textChanged = newUserData.text() != m_lastValues.text;
|
const bool textChanged = newUserData.text() != m_lastValues.text;
|
||||||
|
|
||||||
|
@ -42,7 +42,6 @@ namespace app {
|
|||||||
ui::Timer m_restartPreviewTimer;
|
ui::Timer m_restartPreviewTimer;
|
||||||
std::mutex m_filterMgrMutex;
|
std::mutex m_filterMgrMutex;
|
||||||
app::Task m_filterTask;
|
app::Task m_filterTask;
|
||||||
bool m_filterIsDone;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace app
|
} // namespace app
|
||||||
|
@ -101,7 +101,6 @@ namespace app {
|
|||||||
const doc::LayerImage* m_bgLayer = nullptr;
|
const doc::LayerImage* m_bgLayer = nullptr;
|
||||||
// TODO these members are the same as in render::Render, we should
|
// TODO these members are the same as in render::Render, we should
|
||||||
// see a way to merge both
|
// see a way to merge both
|
||||||
const doc::Layer* m_selectedLayerForOpacity = nullptr;
|
|
||||||
const doc::Layer* m_selectedLayer = nullptr;
|
const doc::Layer* m_selectedLayer = nullptr;
|
||||||
doc::frame_t m_selectedFrame = -1;
|
doc::frame_t m_selectedFrame = -1;
|
||||||
const doc::Image* m_previewImage = nullptr;
|
const doc::Image* m_previewImage = nullptr;
|
||||||
|
@ -653,7 +653,7 @@ double algo_spline_get_tan(double x0, double y0, double x1, double y1,
|
|||||||
|
|
||||||
/* Derivatives of x(t) and y(t). */
|
/* Derivatives of x(t) and y(t). */
|
||||||
double x, dx, ddx, dddx;
|
double x, dx, ddx, dddx;
|
||||||
double y, dy, ddy, dddy;
|
double dy, ddy, dddy;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Temp variables used in the setup. */
|
/* Temp variables used in the setup. */
|
||||||
@ -693,21 +693,18 @@ double algo_spline_get_tan(double x0, double y0, double x1, double y1,
|
|||||||
dx = xdt3_term - xdt2_term + 3 * dt * (x1 - x0);
|
dx = xdt3_term - xdt2_term + 3 * dt * (x1 - x0);
|
||||||
dy = ydt3_term - ydt2_term + dt * 3 * (y1 - y0);
|
dy = ydt3_term - ydt2_term + dt * 3 * (y1 - y0);
|
||||||
x = x0;
|
x = x0;
|
||||||
y = y0;
|
|
||||||
|
|
||||||
old_x = x0;
|
old_x = x0;
|
||||||
old_dx = dx;
|
old_dx = dx;
|
||||||
old_dy = dy;
|
old_dy = dy;
|
||||||
|
|
||||||
x += .5;
|
x += .5;
|
||||||
y += .5;
|
|
||||||
for (i=1; i<npts; i++) {
|
for (i=1; i<npts; i++) {
|
||||||
ddx += dddx;
|
ddx += dddx;
|
||||||
ddy += dddy;
|
ddy += dddy;
|
||||||
dx += ddx;
|
dx += ddx;
|
||||||
dy += ddy;
|
dy += ddy;
|
||||||
x += dx;
|
x += dx;
|
||||||
y += dy;
|
|
||||||
|
|
||||||
out_x = x;
|
out_x = x;
|
||||||
if (out_x > in_x) {
|
if (out_x > in_x) {
|
||||||
|
@ -142,7 +142,6 @@ Image* read_image(std::istream& is, bool setId)
|
|||||||
if (err != Z_OK)
|
if (err != Z_OK)
|
||||||
throw base::Exception("ZLib error %d in inflateInit().", err);
|
throw base::Exception("ZLib error %d in inflateInit().", err);
|
||||||
|
|
||||||
int uncompressed_offset = 0;
|
|
||||||
int remain = avail_bytes;
|
int remain = avail_bytes;
|
||||||
|
|
||||||
std::vector<uint8_t> compressed(4096);
|
std::vector<uint8_t> compressed(4096);
|
||||||
@ -186,7 +185,6 @@ Image* read_image(std::istream& is, bool setId)
|
|||||||
|
|
||||||
int uncompressed_bytes = (int)((address_end - address) - zstream.avail_out);
|
int uncompressed_bytes = (int)((address_end - address) - zstream.avail_out);
|
||||||
if (uncompressed_bytes > 0) {
|
if (uncompressed_bytes > 0) {
|
||||||
uncompressed_offset += uncompressed_bytes;
|
|
||||||
address += uncompressed_bytes;
|
address += uncompressed_bytes;
|
||||||
}
|
}
|
||||||
} while (zstream.avail_in != 0 && zstream.avail_out == 0);
|
} while (zstream.avail_in != 0 && zstream.avail_out == 0);
|
||||||
|
@ -210,6 +210,7 @@ bool Playback::handleExitFrame(const frame_t frameDelta)
|
|||||||
auto tag = this->tag();
|
auto tag = this->tag();
|
||||||
if (tag && tag->contains(m_frame)) {
|
if (tag && tag->contains(m_frame)) {
|
||||||
ASSERT(!m_playing.empty());
|
ASSERT(!m_playing.empty());
|
||||||
|
[[maybe_unused]]
|
||||||
int forward = m_playing.back()->forward;
|
int forward = m_playing.back()->forward;
|
||||||
|
|
||||||
PLAY_TRACE("tag aniDir=", (int)tag->aniDir(),
|
PLAY_TRACE("tag aniDir=", (int)tag->aniDir(),
|
||||||
|
2
src/tga
2
src/tga
@ -1 +1 @@
|
|||||||
Subproject commit d537510d98bc9706675746d132fa460639254a78
|
Subproject commit cd3420c3a5797f1200fd1e1970ca29598f2c2436
|
Loading…
x
Reference in New Issue
Block a user