Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit a82da65

Browse files
committed
remove unused patch for uYou
1 parent 54a5c60 commit a82da65

File tree

2 files changed

+26
-342
lines changed

2 files changed

+26
-342
lines changed

Settings.xm

Lines changed: 9 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,6 @@ extern NSBundle *uYouPlusBundle();
5959
# pragma mark - VideoPlayer
6060
YTSettingsSectionItem *videoPlayerGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"VIDEO_PLAYER_OPTIONS") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
6161
NSArray <YTSettingsSectionItem *> *rows = @[
62-
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"AUTO_FULLSCREEN")
63-
titleDescription:LOC(@"AUTO_FULLSCREEN_DESC")
64-
accessibilityIdentifier:nil
65-
switchOn:IsEnabled(@"autoFull_enabled")
66-
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
67-
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"autoFull_enabled"];
68-
return YES;
69-
}
70-
settingItemId:0],
71-
7262
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"DISABLE_DOUBLE_TAP_TO_SEEK")
7363
titleDescription:LOC(@"DISABLE_DOUBLE_TAP_TO_SEEK_DESC")
7464
accessibilityIdentifier:nil
@@ -199,15 +189,15 @@ extern NSBundle *uYouPlusBundle();
199189
}
200190
settingItemId:0],
201191

202-
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"RED_PROGRESS_BAR")
203-
titleDescription:LOC(@"RED_PROGRESS_BAR_DESC")
204-
accessibilityIdentifier:nil
205-
switchOn:IsEnabled(@"redProgressBar_enabled")
206-
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
207-
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"redProgressBar_enabled"];
208-
return YES;
209-
}
210-
settingItemId:0],
192+
// [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"RED_PROGRESS_BAR")
193+
// titleDescription:LOC(@"RED_PROGRESS_BAR_DESC")
194+
// accessibilityIdentifier:nil
195+
// switchOn:IsEnabled(@"redProgressBar_enabled")
196+
// switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
197+
// [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"redProgressBar_enabled"];
198+
// return YES;
199+
// }
200+
// settingItemId:0],
211201

212202
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_HOVER_CARD")
213203
titleDescription:LOC(@"HIDE_HOVER_CARD_DESC")
@@ -248,56 +238,6 @@ extern NSBundle *uYouPlusBundle();
248238
# pragma mark - Shorts Controls Overlay Options
249239
YTSettingsSectionItem *shortsControlOverlayGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"SHORTS_CONTROLS_OVERLAY_OPTIONS") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
250240
NSArray <YTSettingsSectionItem *> *rows = @[
251-
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_SHORTS_CHANNEL_AVATAR")
252-
titleDescription:LOC(@"HIDE_SHORTS_CHANNEL_AVATAR_DESC")
253-
accessibilityIdentifier:nil
254-
switchOn:IsEnabled(@"hideShortsChannelAvatar_enabled")
255-
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
256-
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideShortsChannelAvatar_enabled"];
257-
return YES;
258-
}
259-
settingItemId:0],
260-
261-
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_SHORTS_DISLIKE_BUTTON")
262-
titleDescription:LOC(@"HIDE_SHORTS_DISLIKE_BUTTON_DESC")
263-
accessibilityIdentifier:nil
264-
switchOn:IsEnabled(@"hideShortsDislikeButton_enabled")
265-
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
266-
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideShortsDislikeButton_enabled"];
267-
return YES;
268-
}
269-
settingItemId:0],
270-
271-
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_SHORTS_COMMENT_BUTTON")
272-
titleDescription:LOC(@"HIDE_SHORTS_COMMENT_BUTTON_DESC")
273-
accessibilityIdentifier:nil
274-
switchOn:IsEnabled(@"hideShortsCommentButton_enabled")
275-
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
276-
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideShortsCommentButton_enabled"];
277-
return YES;
278-
}
279-
settingItemId:0],
280-
281-
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_SHORTS_REMIX_BUTTON")
282-
titleDescription:LOC(@"HIDE_SHORTS_REMIX_BUTTON_DESC")
283-
accessibilityIdentifier:nil
284-
switchOn:IsEnabled(@"hideShortsRemixButton_enabled")
285-
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
286-
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideShortsRemixButton_enabled"];
287-
return YES;
288-
}
289-
settingItemId:0],
290-
291-
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_SHORTS_SHARE_BUTTON")
292-
titleDescription:LOC(@"HIDE_SHORTS_SHARE_BUTTON_DESC")
293-
accessibilityIdentifier:nil
294-
switchOn:IsEnabled(@"hideShortsShareButton_enabled")
295-
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
296-
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideShortsShareButton_enabled"];
297-
return YES;
298-
}
299-
settingItemId:0],
300-
301241
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_SUPER_THANKS")
302242
titleDescription:LOC(@"HIDE_SUPER_THANKS_DESC")
303243
accessibilityIdentifier:nil
@@ -317,16 +257,6 @@ extern NSBundle *uYouPlusBundle();
317257
return YES;
318258
}
319259
settingItemId:0],
320-
321-
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_UYOU_SHORTS_DOWNLOAD_BUTTON")
322-
titleDescription:LOC(@"HIDE_UYOU_SHORTS_DOWNLOAD_BUTTON_DESC")
323-
accessibilityIdentifier:nil
324-
switchOn:IsEnabled(@"hideuYouShortsDownloadButton_enabled")
325-
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
326-
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideuYouShortsDownloadButton_enabled"];
327-
return YES;
328-
}
329-
settingItemId:0],
330260

331261
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"DISABLE_RESUME_TO_SHORTS")
332262
titleDescription:LOC(@"DISABLE_RESUME_TO_SHORTS_DESC")

0 commit comments

Comments
 (0)