From 02ede90d77b43ec0137535d39310aaca573b0e78 Mon Sep 17 00:00:00 2001 From: Acaki Date: Sun, 13 Jul 2025 16:25:29 +0800 Subject: [PATCH] refactor: remove comments added by xcode --- VoidLink/ImGuiRenderer 2.h | 45 ---------------------------- VoidLink/ImGuiRenderer.mm | 9 ------ VoidLink/Metal/MetalConfig.h | 9 ------ VoidLink/Metal/MetalVideoRenderer.h | 9 ------ VoidLink/Metal/MetalVideoRenderer.m | 9 ------ VoidLink/Metal/MetalView.h | 9 ------ VoidLink/Metal/MetalView.m | 9 ------ VoidLink/Metal/MetalViewController.h | 9 ------ VoidLink/Metal/MetalViewController.m | 9 ------ VoidLink/Metal/Shaders.metal | 9 ------ VoidLink/Stats/ImGuiPlots.h | 9 ------ 11 files changed, 135 deletions(-) delete mode 100644 VoidLink/ImGuiRenderer 2.h diff --git a/VoidLink/ImGuiRenderer 2.h b/VoidLink/ImGuiRenderer 2.h deleted file mode 100644 index 345fd9f7..00000000 --- a/VoidLink/ImGuiRenderer 2.h +++ /dev/null @@ -1,45 +0,0 @@ -// -// ImGuiRenderer 2.h -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - -#import -#import -#import -#import - -#import "FloatBuffer.h" -#import "Plot.h" - -typedef void (^MetricsHandler)(int plotId, CFTimeInterval value); - -@interface ImGuiRenderer : UIViewController -@end - -@interface ImGuiRenderer () -@property (nonatomic) CGRect bounds; -@property (nonatomic, readonly) MTKView * _Nonnull mtkView; -@property (nonatomic, strong) id _Nonnull device; -@property (nonatomic, strong) id _Nonnull commandQueue; -@property (nonatomic) struct PlotDef * _Nonnull plots; -@property (nonatomic) FloatBuffer * _Nonnull frametimes; -@property (nonatomic) BOOL enableGraphs; -@property (nonatomic) float graphOpacity; -@property (nonatomic) BOOL imguiRunning; -@property (nonatomic) MetricsHandler _Nonnull metricsHandler; - --(nonnull instancetype) initWithFrame:(CGRect)bounds - streamFps:(int)streamFps - enableGraphs:(BOOL)enableGraphs - graphOpacity:(int)graphOpacity; --(void) start; --(void) show; --(void) hide; --(void) stop; --(void) observeFloat:(int)plotId value:(CFTimeInterval)value; --(void) observeFloatReturnMetrics:(int)plotId value:(CFTimeInterval)value plotMetrics:(PlotMetrics * _Nullable)plotMetrics; -@end diff --git a/VoidLink/ImGuiRenderer.mm b/VoidLink/ImGuiRenderer.mm index 6f4f7738..7e22f360 100644 --- a/VoidLink/ImGuiRenderer.mm +++ b/VoidLink/ImGuiRenderer.mm @@ -1,12 +1,3 @@ -// -// ImGuiRenderer.m -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - #import #import #import "ImGuiRenderer.h" diff --git a/VoidLink/Metal/MetalConfig.h b/VoidLink/Metal/MetalConfig.h index f21fb332..d107baf6 100644 --- a/VoidLink/Metal/MetalConfig.h +++ b/VoidLink/Metal/MetalConfig.h @@ -1,12 +1,3 @@ -// -// MetalConfig.h -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - // When enabled, rendering occurs on the main application thread. // This can make responding to UI events during redraw simpler // to manage because UI calls usually need to occur on the main thread. diff --git a/VoidLink/Metal/MetalVideoRenderer.h b/VoidLink/Metal/MetalVideoRenderer.h index 1907734d..a5591625 100644 --- a/VoidLink/Metal/MetalVideoRenderer.h +++ b/VoidLink/Metal/MetalVideoRenderer.h @@ -1,12 +1,3 @@ -// -// MetalVideoRenderer.h -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - #import #import #import "ConnectionCallbacks.h" diff --git a/VoidLink/Metal/MetalVideoRenderer.m b/VoidLink/Metal/MetalVideoRenderer.m index a9ecd71a..aab8a82c 100644 --- a/VoidLink/Metal/MetalVideoRenderer.m +++ b/VoidLink/Metal/MetalVideoRenderer.m @@ -1,12 +1,3 @@ -// -// MetalVideoRenderer.m -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - #import "MetalVideoRenderer.h" #import #import diff --git a/VoidLink/Metal/MetalView.h b/VoidLink/Metal/MetalView.h index b750fd6d..603b97ca 100644 --- a/VoidLink/Metal/MetalView.h +++ b/VoidLink/Metal/MetalView.h @@ -1,12 +1,3 @@ -// -// MetalView.h -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - #import #import #import diff --git a/VoidLink/Metal/MetalView.m b/VoidLink/Metal/MetalView.m index 3a104080..d5f4986d 100644 --- a/VoidLink/Metal/MetalView.m +++ b/VoidLink/Metal/MetalView.m @@ -1,12 +1,3 @@ -// -// MetalView.m -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - // This is based on the following Apple example: // https://developer.apple.com/documentation/metal/achieving-smooth-frame-rates-with-a-metal-display-link?language=objc // https://developer.apple.com/wwdc23/10123/ diff --git a/VoidLink/Metal/MetalViewController.h b/VoidLink/Metal/MetalViewController.h index 0b283350..76903d64 100644 --- a/VoidLink/Metal/MetalViewController.h +++ b/VoidLink/Metal/MetalViewController.h @@ -1,12 +1,3 @@ -// -// MetalViewController.h -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - #import #import "FrameQueue.h" #import "ImGuiRenderer.h" diff --git a/VoidLink/Metal/MetalViewController.m b/VoidLink/Metal/MetalViewController.m index 2446054d..2d4e7888 100644 --- a/VoidLink/Metal/MetalViewController.m +++ b/VoidLink/Metal/MetalViewController.m @@ -1,12 +1,3 @@ -// -// MetalViewController.m -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - /* See the LICENSE.txt file for this sample’s licensing information. diff --git a/VoidLink/Metal/Shaders.metal b/VoidLink/Metal/Shaders.metal index c3103732..e65b42a9 100644 --- a/VoidLink/Metal/Shaders.metal +++ b/VoidLink/Metal/Shaders.metal @@ -1,12 +1,3 @@ -// -// Vertex.swift -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - #include #include diff --git a/VoidLink/Stats/ImGuiPlots.h b/VoidLink/Stats/ImGuiPlots.h index d293997b..f94620c6 100644 --- a/VoidLink/Stats/ImGuiPlots.h +++ b/VoidLink/Stats/ImGuiPlots.h @@ -1,12 +1,3 @@ -// -// ImGuiPlots.h -// VoidLink -// -// Created by Mason Chen on 2025/7/11. -// Copyright © 2025 Moonlight Game Streaming Project. All rights reserved. -// - - #import #import