Skip to content

Commit

Permalink
refactor(PlantUMLObservableDocument): remove PlantUMLBrowserPresenter
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Jul 1, 2024
1 parent 67be5a0 commit a2737ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PlantUML/PlantUMLObservableDocument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ class PlantUMLObservableDocument : ObservableObject {

let updateRequest = DebounceRequest( debounceInSeconds: 0.5)

let presenter = PlantUMLBrowserPresenter( format: .imagePng )

private var textCancellable:AnyCancellable?

init( document: Binding<PlantUMLDocument>, fileName:String ) {
Expand All @@ -74,7 +72,7 @@ class PlantUMLObservableDocument : ObservableObject {
}
let script = PlantUMLScript( items: items )

return presenter.url( of: script )
return plantUMLUrl( of: script, format: .imagePng )
}

func reset() {
Expand Down

0 comments on commit a2737ae

Please sign in to comment.