Skip to content

Commit 1afaa0d

Browse files
committed
rollback dead code removal
1 parent 7fe268a commit 1afaa0d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Sources/Navigator/PDF/PDFNavigatorViewController.swift

+27
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,33 @@ open class PDFNavigatorViewController: UIViewController, VisualNavigator, Select
179179
}
180180
}
181181

182+
private init(
183+
publication: Publication,
184+
initialLocation: Locator?,
185+
httpServer: HTTPServer?,
186+
publicationEndpoint: HTTPServerEndpoint?,
187+
publicationBaseURL: URL,
188+
config: Configuration
189+
) {
190+
self.publication = publication
191+
self.initialLocation = initialLocation
192+
server = httpServer
193+
self.publicationEndpoint = publicationEndpoint
194+
self.publicationBaseURL = URL(string: publicationBaseURL.absoluteString.addingSuffix("/"))!
195+
self.config = config
196+
editingActions = EditingActionsController(actions: config.editingActions, publication: publication)
197+
198+
settings = PDFSettings(
199+
preferences: config.preferences,
200+
defaults: config.defaults,
201+
metadata: publication.metadata
202+
)
203+
204+
super.init(nibName: nil, bundle: nil)
205+
206+
postInit()
207+
}
208+
182209
@available(*, unavailable)
183210
public required init?(coder aDecoder: NSCoder) {
184211
fatalError("init(coder:) has not been implemented")

0 commit comments

Comments
 (0)