diff --git a/src/Http.c b/src/Http.c index bba0951c8..d18821403 100644 --- a/src/Http.c +++ b/src/Http.c @@ -397,10 +397,10 @@ static void Http_DownloadAsync(struct HttpRequest* req) { } /* Can't use this for all URLs, because cache-control isn't in allowed CORS headers */ - /* For example, if you try this with dropbox, you'll get a '404' with - /* Access to XMLHttpRequest at 'https://dl.dropbox.com/s/a/a.zip' from - /* origin 'http://www.classicube.net' has been blocked by CORS policy: - /* Response to preflight request doesn't pass access control check: + /* For example, if you try this with dropbox, you'll get a '404' with */ + /* Access to XMLHttpRequest at 'https://dl.dropbox.com/s/a/a.zip' from */ + /* origin 'http://www.classicube.net' has been blocked by CORS policy: */ + /* Response to preflight request doesn't pass access control check: */ /* Redirect is not allowed for a preflight request. */ /* printed to console. But this is still used for skins, that way when users change */ /* their skins, the change shows up instantly. But 99% of the time we'll get a 304 */ diff --git a/src/Logger.c b/src/Logger.c index 19d26b7d5..c37512a53 100644 --- a/src/Logger.c +++ b/src/Logger.c @@ -798,7 +798,6 @@ void Logger_Abort2(cc_result result, const char* raw_msg) { /*########################################################################################################################* *----------------------------------------------------------Common---------------------------------------------------------* *#########################################################################################################################*/ -static FileHandle logFile; static struct Stream logStream; static cc_bool logOpen; diff --git a/src/Screens.c b/src/Screens.c index cd282e731..ef3051c29 100644 --- a/src/Screens.c +++ b/src/Screens.c @@ -1484,7 +1484,6 @@ static void DisconnectScreen_BuildMesh(void* screen) { } static void DisconnectScreen_Init(void* screen) { - static struct Widget* widgets[3]; struct DisconnectScreen* s = (struct DisconnectScreen*)screen; TextWidget_Make(&s->title, ANCHOR_CENTRE, ANCHOR_CENTRE, 0, -30); @@ -1509,7 +1508,6 @@ static void DisconnectScreen_Update(void* screen, double delta) { } static void DisconnectScreen_Render(void* screen, double delta) { - struct DisconnectScreen* s = (struct DisconnectScreen*)screen; PackedCol top = PackedCol_Make(64, 32, 32, 255); PackedCol bottom = PackedCol_Make(80, 16, 16, 255); Gfx_Draw2DGradient(0, 0, Window_Width, Window_Height, top, bottom); diff --git a/src/SelectionBox.c b/src/SelectionBox.c index 96a422872..fefb62fa6 100644 --- a/src/SelectionBox.c +++ b/src/SelectionBox.c @@ -74,14 +74,6 @@ static int SelectionBox_Compare(struct SelectionBox* a, struct SelectionBox* b) return 0; } -static void SelectionBox_UpdateDist(Vec3 p, float x2, float y2, float z2, float* closest, float* furthest) { - float dx = x2 - p.X, dy = y2 - p.Y, dz = z2 - p.Z; - float dist = dx * dx + dy * dy + dz * dz; - - if (dist < *closest) *closest = dist; - if (dist > *furthest) *furthest = dist; -} - static void SelectionBox_Intersect(struct SelectionBox* box, Vec3 P) { float dx1 = (P.X - box->Min.X) * (P.X - box->Min.X), dx2 = (P.X - box->Max.X) * (P.X - box->Max.X); float dy1 = (P.Y - box->Min.Y) * (P.Y - box->Min.Y), dy2 = (P.Y - box->Max.Y) * (P.Y - box->Max.Y); diff --git a/src/Widgets.c b/src/Widgets.c index 4a0a6524c..4e459074c 100644 --- a/src/Widgets.c +++ b/src/Widgets.c @@ -1074,15 +1074,6 @@ static void InputWidget_DeleteChar(struct InputWidget* w) { } } -static cc_bool InputWidget_CheckCol(struct InputWidget* w, int index) { - char code, col; - if (index < 0) return false; - - code = w->text.buffer[index]; - col = w->text.buffer[index + 1]; - return (code == '%' || code == '&') && BitmapCol_A(Drawer2D_GetCol(col)); -} - static void InputWidget_BackspaceKey(struct InputWidget* w) { int i, len; diff --git a/src/Window.c b/src/Window.c index 3631f7ef6..4f5bcfa1f 100644 --- a/src/Window.c +++ b/src/Window.c @@ -1002,8 +1002,6 @@ static cc_bool Window_GetPendingEvent(XEvent* e) { void Window_ProcessEvents(void) { XEvent e; - cc_bool wasFocused; - while (Window_Exists) { if (!Window_GetPendingEvent(&e)) break;