Removed redundant code after cppcheck

This commit is contained in:
Duilio Protti 2016-07-01 17:16:35 -03:00
parent f86a8bce22
commit 2752ac351b
3 changed files with 4 additions and 5 deletions

View File

@ -117,7 +117,7 @@ static inline t_complex fct(t_complex a, guint32 n, gint32 p1, gint32 p2) /* p
an = 0.002; an = 0.002;
co = cos(an); co = cos(an);
si = sin(an); si = sin(an);
circle_size = height * 0.25; //circle_size = height * 0.25;
fact = 1 + cos(atan(a.x / (a.y + 0.00001)) * 6) * 0.02; fact = 1 + cos(atan(a.x / (a.y + 0.00001)) * 6) * 0.02;
b.x = (co * a.x - si * a.y); b.x = (co * a.x - si * a.y);
b.y = (si * a.x + co * a.y); b.y = (si * a.x + co * a.y);
@ -221,7 +221,6 @@ void compute_vector_field_destroy(vector_field_t *vector_field)
g_free(vector_field->vector); g_free(vector_field->vector);
g_free(vector_field); g_free(vector_field);
vector_field = NULL;
} }
void compute_quit() void compute_quit()

View File

@ -192,7 +192,7 @@ static void line(gint32 x1, gint32 y1, gint32 x2, gint32 y2, gint32 c)
dxy = -1; dxy = -1;
else else
dxy = 1; dxy = 1;
for (y1 = y1; y1 < y2; y1++) { for (; y1 < y2; y1++) {
cxy += dx; cxy += dx;
if (cxy >= dy) { if (cxy >= dy) {
x1 += dxy; x1 += dxy;
@ -211,7 +211,7 @@ static void line(gint32 x1, gint32 y1, gint32 x2, gint32 y2, gint32 c)
else else
dxy = 1; dxy = 1;
for (x1 = x1; x1 < x2; x1++) { for (; x1 < x2; x1++) {
cxy += dy; cxy += dy;
if (cxy >= dx) { if (cxy >= dx) {
y1 += dxy; y1 += dxy;

View File

@ -234,7 +234,7 @@ static void handle_window_event(SDL_Event *event) {
SDL_Log("Window %d restored", event->window.windowID); SDL_Log("Window %d restored", event->window.windowID);
break;*/ break;*/
case SDL_WINDOWEVENT_CLOSE: case SDL_WINDOWEVENT_CLOSE:
SDL_Log("Window %d closed", event->window.windowID); //SDL_Log("Window %d closed", event->window.windowID);
player->disable_plugin(); player->disable_plugin();
break; break;
default: default: