Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: third_party/go/src/golang.org/x/mobile/bind/seq/seq.go

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/go/src/golang.org/x/mobile/bind/seq/seq.go
diff --git a/third_party/go/src/golang.org/x/mobile/bind/seq/seq.go b/third_party/go/src/golang.org/x/mobile/bind/seq/seq.go
deleted file mode 100644
index 2239bdf8051d5ee61d8bafe0cbf1533e8f492e2b..0000000000000000000000000000000000000000
--- a/third_party/go/src/golang.org/x/mobile/bind/seq/seq.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2014 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Package seq implements the machine-dependent seq serialization format.
-//
-// Implementations of Transact and FinalizeRef are provided by a
-// specific foreign language binding package, e.g. go.mobile/bind/java.
-//
-// Designed only for use by the code generated by gobind. Don't try to
-// use this directly.
-package seq // import "golang.org/x/mobile/bind/seq"
-
-// TODO(crawshaw):
-// There is opportunity for optimizing these language
-// bindings which requires deconstructing seq into something
-// gnarly. So don't get too attached to the design.
-
-import "fmt"
-
-// Transact calls a method on a foreign object instance.
-// It blocks until the call is complete.
-var Transact func(ref *Ref, code int, in *Buffer) (out *Buffer)
-
-// FinalizeRef is the finalizer used on foreign objects.
-var FinalizeRef func(ref *Ref)
-
-// A Func can be registered and called by a foreign language.
-type Func func(out, in *Buffer)
-
-// Registry holds functions callable from gobind generated bindings.
-// Functions are keyed by descriptor and function code.
-var Registry = make(map[string]map[int]Func)
-
-// Register registers a function in the Registry.
-func Register(descriptor string, code int, fn Func) {
- m := Registry[descriptor]
- if m == nil {
- m = make(map[int]Func)
- Registry[descriptor] = m
- }
- if m[code] != nil {
- panic(fmt.Sprintf("registry.Register: %q/%d already registered", descriptor, code))
- }
- m[code] = fn
-}
« no previous file with comments | « third_party/go/src/golang.org/x/mobile/bind/seq/ref.go ('k') | third_party/go/src/golang.org/x/mobile/bind/seq/seq_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698