 }
 
 /// The Web View Controller which encapsulates the management of the webivew and the interaction with the HPP web page.
-class HPPViewController: UIViewController, WKNavigationDelegate,  WKUIDelegate, WKScriptMessageHandler, UIWebViewDelegate {
+class HPPViewController: UIViewController, WKNavigationDelegate,  WKUIDelegate, WKScriptMessageHandler {
 
     @IBOutlet var containerView : UIView? = nil
 
     var webView: WKWebView?
-    var legacyWebView: UIWebView?
 
     var delegate:HPPViewControllerDelegate?
 

    }

    /**
     Initalises UIWebview.

     */
    fileprivate func initaliseLegacyWebView() {

        self.legacyWebView = UIWebView(frame: self.view.bounds)
        self.legacyWebView?.delegate = self
        self.view = self.legacyWebView

    }

    /**
     Called if the user taps the cancel button.
     */
    @objc func closeView() {


        self.dismiss(animated: true, completion: nil)
    }
}
