diff options
author | Robert Adam <dev@robert-adam.de> | 2022-07-22 09:23:19 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2022-07-22 09:23:19 +0300 |
commit | 128f27657710c3640ef0e79c22c34cff2c58f732 (patch) | |
tree | c6329f419aec4a390e91927ff8664813bd2b5248 /src | |
parent | 93c13bdeea15c92f4590832b6bfd11c7dcfc86fa (diff) |
BUILD(overlay): Remove dead code
The removed code was part of some logic introduced in
f6d9c4f7b57bc8163f392bdf50bda520f107b72f but the functional parts have
been removed when getting rid of all Qt4-specific code parts.
This left a few now unused variables in the code which in more recent
compiler versions would cause a warning (and thus in the default
settings a build error).
Since the code doesn't do anything anymore, this commit fully removes
the remaining parts of this code snippet.
Fixes #5724
Diffstat (limited to 'src')
-rw-r--r-- | src/mumble/Overlay_macx.mm | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mumble/Overlay_macx.mm b/src/mumble/Overlay_macx.mm index ef6d6db20..b73ed9879 100644 --- a/src/mumble/Overlay_macx.mm +++ b/src/mumble/Overlay_macx.mm @@ -203,17 +203,6 @@ void OverlayClient::updateMouse() { } QPixmap pm = qmCursors.value(csShape); - if (pm.isNull()) { - NSImage *img = [cursor image]; - CGImageRef cgimg = nullptr; - NSArray *reps = [img representations]; - for (NSUInteger i = 0; i < [reps count]; i++) { - NSImageRep *rep = [reps objectAtIndex:i]; - if ([rep class] == [NSBitmapImageRep class]) { - cgimg = [(NSBitmapImageRep *)rep CGImage]; - } - } - } NSPoint p = [cursor hotSpot]; iOffsetX = (int) p.x; |