Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Oct 4, 2023
1 parent 014a69e commit fa5e9a6
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 354 deletions.
16 changes: 16 additions & 0 deletions WordPress/Classes/Services/Stories/DisabledVideoOverlay.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import UIKit

/// An overlay for videos that exceed allowed duration
class DisabledVideoOverlay: UIView {

static let overlayTransparency: CGFloat = 0.8

init() {
super.init(frame: .zero)
backgroundColor = .gray.withAlphaComponent(Self.overlayTransparency)
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
1 change: 0 additions & 1 deletion WordPress/Classes/System/WordPress-Bridging-Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
#import "WPWebViewController.h"
#import "WPTabBarController.h"
#import "WPUserAgent.h"
#import "WPAndDeviceMediaLibraryDataSource.h"
#import "WPLogger.h"
#import "WPException.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class GutenbergMediaPickerHelper: NSObject {
picker.selectionActionTitle = Constants.mediaPickerInsertText
picker.mediaPicker.options = mediaPickerOptions
picker.delegate = self
picker.mediaPicker.registerClass(forReusableCellOverlayViews: DisabledVideoOverlay.self)
picker.mediaPicker.registerClass(forCustomHeaderView: DeviceMediaPermissionsHeader.self)

picker.previewActionTitle = NSLocalizedString("Edit %@", comment: "Button that displays the media editor to the user")
Expand Down
46 changes: 0 additions & 46 deletions WordPress/Classes/ViewRelated/Media/MediaLibraryPicker.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
@class Blog;
@class AbstractPost;

typedef NS_ENUM(NSUInteger, MediaPickerDataSourceType) {
MediaPickerDataSourceTypeDevice,
MediaPickerDataSourceTypeMediaLibrary
};

@interface MediaLibraryGroup: NSObject <WPMediaGroup>

- (nonnull instancetype)initWithBlog:(Blog *_Nonnull)blog;
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit fa5e9a6

Please sign in to comment.