Skip to content

Commit 4c5a8b0

Browse files
unused variables
1 parent 0c34bce commit 4c5a8b0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

buildconfig/stubs/pygame/surface.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Surface:
109109
def set_colorkey(self, color: ColorValue, flags: int = 0, /) -> None: ...
110110
@overload
111111
def set_colorkey(self, color: None, /) -> None: ...
112-
def get_colorkey_raw(self, color: int) -> None: ...
112+
def set_colorkey_raw(self, color: int) -> None: ...
113113
def get_colorkey(self) -> Optional[RGBAOutput]: ...
114114
def get_colorkey_raw(self) -> int: ...
115115
def has_colorkey(self) -> bool: ...

src_c/surface.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1275,9 +1275,8 @@ static PyObject *
12751275
surf_set_colorkey_raw(pgSurfaceObject *self, PyObject *args)
12761276
{
12771277
SDL_Surface *surf = pgSurface_AsSurface(self);
1278-
Uint32 flags = 0, color = 0;
1278+
Uint32 color = 0;
12791279
int result;
1280-
int hascolor = SDL_FALSE;
12811280

12821281
if (!PyArg_ParseTuple(args, "I", &color))
12831282
return NULL;

0 commit comments

Comments
 (0)