Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2022-07-22 17:59:20 +0300
committerGitHub <noreply@github.com>2022-07-22 17:59:20 +0300
commitad8df847fdebca95feff3f84d19fa5dacdb51c5e (patch)
treec0ed22ec840cb0c396369f60c17cc1d300c5bf49
parenta522d226f2fe66ee2e95bf2aba7ba75afd9e5ffe (diff)
parent128f27657710c3640ef0e79c22c34cff2c58f732 (diff)
Merge PR #5754: BUILD(overlay): Remove dead code
The removed code was part of some logic introduced in f6d9c4f 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
-rw-r--r--src/mumble/Overlay_macx.mm11
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;