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

Unified Diff: third_party/go/src/golang.org/x/mobile/example/libhellojni/hello.c

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/example/libhellojni/hello.c
diff --git a/third_party/go/src/golang.org/x/mobile/example/libhellojni/hello.c b/third_party/go/src/golang.org/x/mobile/example/libhellojni/hello.c
deleted file mode 100644
index d96b405dfbb4199d96f60fea22becb73ab9f0ecf..0000000000000000000000000000000000000000
--- a/third_party/go/src/golang.org/x/mobile/example/libhellojni/hello.c
+++ /dev/null
@@ -1,27 +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.
-
-// +build android
-
-// See main.go for commentary.
-
-#include <android/log.h>
-#include <jni.h>
-#include <limits.h>
-#include "_cgo_export.h"
-
-JNIEXPORT void JNICALL
-Java_demo_Demo_hello(JNIEnv* env, jclass clazz, jstring jname) {
- // Turn Java's UTF16 string into (almost) UTF8.
- const char *name = (*env)->GetStringUTFChars(env, jname, 0);
-
- GoString go_name;
- go_name.p = (char*)name;
- go_name.n = (*env)->GetStringUTFLength(env, jname);
-
- // Call into Go.
- LogHello(go_name);
-
- (*env)->ReleaseStringUTFChars(env, jname, name);
-}

Powered by Google App Engine
This is Rietveld 408576698