aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/error.go')
-rw-r--r--src/runtime/error.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/runtime/error.go b/src/runtime/error.go
index d8af4f156d..4280306ac5 100644
--- a/src/runtime/error.go
+++ b/src/runtime/error.go
@@ -43,25 +43,6 @@ func (e *TypeAssertionError) Error() string {
": missing method " + e.missingMethod
}
-// For calling from C.
-func newTypeAssertionError(ps1, ps2, ps3 *string, pmeth *string, ret *interface{}) {
- var s1, s2, s3, meth string
-
- if ps1 != nil {
- s1 = *ps1
- }
- if ps2 != nil {
- s2 = *ps2
- }
- if ps3 != nil {
- s3 = *ps3
- }
- if pmeth != nil {
- meth = *pmeth
- }
- *ret = &TypeAssertionError{s1, s2, s3, meth}
-}
-
// An errorString represents a runtime error described by a single string.
type errorString string