IOS-1540 Back out: Making errorAndCrash accept pure error. IOS-1540_GOOD
authorDirk Zimmermann <dz@pep.security>
Wed, 05 Jun 2019 16:12:20 +0200
branchIOS-1540_GOOD
changeset 89172b64ca6005e4
parent 8916 1e1e22c27e25
child 8918 fc82fe2a9896
IOS-1540 Back out: Making errorAndCrash accept pure error.
Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift
     1.1 --- a/Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift	Wed Jun 05 16:12:20 2019 +0200
     1.2 +++ b/Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift	Wed Jun 05 16:12:20 2019 +0200
     1.3 @@ -170,15 +170,6 @@
     1.4          SystemUtils.crash(msgString)
     1.5      }
     1.6  
     1.7 -    public func errorAndCrash(function: String = #function,
     1.8 -                              filePath: String = #file,
     1.9 -                              fileLine: Int = #line,
    1.10 -                              _ error: Error) {
    1.11 -        let msgString = "\(error)"
    1.12 -        os_log("%{public}@ %{public}@ (%{public}@):%d", msgString, function, filePath, fileLine)
    1.13 -        SystemUtils.crash(msgString)
    1.14 -    }
    1.15 -
    1.16      /**
    1.17       Logs an error.
    1.18       */