@@ -25,8 +25,6 @@ class Response {
2525 private $ channel ;
2626 /** @var bool */
2727 private $ isSparkle ;
28- /** @var bool */
29- private $ isFileProvider ;
3028 /** @var array */
3129 private $ config ;
3230
@@ -38,7 +36,6 @@ public function __construct(string $oem,
3836 string $ kernelVersion ,
3937 string $ channel ,
4038 bool $ isSparkle ,
41- bool $ isFileProvider ,
4239 array $ config ) {
4340 $ this ->oem = $ oem ;
4441 $ this ->platform = $ platform ;
@@ -48,7 +45,6 @@ public function __construct(string $oem,
4845 $ this ->kernelVersion = $ kernelVersion ;
4946 $ this ->channel = $ channel ;
5047 $ this ->isSparkle = $ isSparkle ;
51- $ this ->isFileProvider = $ isFileProvider ;
5248 $ this ->config = $ config ;
5349 }
5450
@@ -188,22 +184,22 @@ protected function getCurrentTimeStamp() : string {
188184 * Convenience functions to get specific file provider or standard client update information
189185 */
190186 private function getSparkleUpdateUrl (array $ updateVersion ) : string {
191- $ updateUrlKey = $ this -> isFileProvider ? ' fileProviderSparkleDownloadUrl ' : 'sparkleDownloadUrl ' ;
187+ $ updateUrlKey = 'sparkleDownloadUrl ' ;
192188 return $ updateVersion [$ updateUrlKey ];
193189 }
194190
195191 private function getSparkleUpdateSignature (array $ updateVersion ) : string {
196- $ updateSignatureKey = $ this -> isFileProvider ? ' fileProviderSignature ' : 'signature ' ;
192+ $ updateSignatureKey = 'signature ' ;
197193 return $ updateVersion [$ updateSignatureKey ];
198194 }
199195
200196 private function getSparkleUpdateLength (array $ updateVersion ) : int {
201- $ updateLengthKey = $ this -> isFileProvider ? ' fileProviderLength ' : 'length ' ;
197+ $ updateLengthKey = 'length ' ;
202198 return $ updateVersion [$ updateLengthKey ];
203199 }
204200
205201 private function getSparkleVersionString (array $ updateVersion ) : string {
206- $ updateLengthKey = $ this -> isFileProvider ? ' fileProviderVersionString ' : 'versionstring ' ;
202+ $ updateLengthKey = 'versionstring ' ;
207203 return $ updateVersion [$ updateLengthKey ];
208204 }
209205
0 commit comments