From dcf3301c3b056f1f06c9c959394f9b3707aadbdf Mon Sep 17 00:00:00 2001 From: CWX Date: Sat, 18 Jan 2025 12:46:54 +0000 Subject: [PATCH] use prim ctor and fix warnings --- Core/Callbacks/BundleCallbacks.cs | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/Core/Callbacks/BundleCallbacks.cs b/Core/Callbacks/BundleCallbacks.cs index b1226380..d5928014 100644 --- a/Core/Callbacks/BundleCallbacks.cs +++ b/Core/Callbacks/BundleCallbacks.cs @@ -1,33 +1,15 @@ using Core.Annotations; using Core.Models.Eft.Common; -using Core.Models.Enums; -using Core.Models.Spt.Config; -using Core.Servers; using Core.Utils; namespace Core.Callbacks; [Injectable(InjectableTypeOverride = typeof(BundleCallbacks))] -public class BundleCallbacks +public class BundleCallbacks( + HttpResponseUtil _httpResponseUtil + // BundleLoader _bundleLoader, +) { - protected HttpResponseUtil _httpResponseUtil; - // protected BundleLoader _bundleLoader; TODO: this needs implementing - protected ConfigServer _configServer; - protected HttpConfig _httpConfig; - - public BundleCallbacks - ( - HttpResponseUtil httpResponseUtil, - // BundleLoader bundleLoader, - ConfigServer configServer - ) - { - _httpResponseUtil = httpResponseUtil; - // _bundleLoader = bundleLoader; - _configServer = configServer; - _httpConfig = configServer.GetConfig(); - } - /// /// Handle singleplayer/bundles ///