You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/03/07 20:43:17 UTC
spec commit: Remove unreferenced function in camera/index.html
Updated Branches:
refs/heads/master 3d6af0306 -> 9d9f9196e
Remove unreferenced function in camera/index.html
Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/9d9f9196
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/9d9f9196
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/9d9f9196
Branch: refs/heads/master
Commit: 9d9f9196e41809f3ecd7fdaf12de87ec53d625f3
Parents: 3d6af03
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Mar 7 11:42:59 2013 -0800
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Mar 7 11:42:59 2013 -0800
----------------------------------------------------------------------
camera/index.html | 21 ---------------------
1 files changed, 0 insertions(+), 21 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/9d9f9196/camera/index.html
----------------------------------------------------------------------
diff --git a/camera/index.html b/camera/index.html
index 257bb4a..9c92e80 100644
--- a/camera/index.html
+++ b/camera/index.html
@@ -206,27 +206,6 @@
fileEntry.createWriter(onFileTruncateWriterReceived, null);
};
- /**
- * Upload image from library using a NATIVE_URI destination type
- * This calls FileTransfer.upload.
- */
- function uploadImageUsingNativeUri() {
- navigator.camera.getPicture(
- function(data) {
- var options = new FileUploadOptions();
- options.fileName = "image.png";
- options.mimeType = "image/png";
-
- var fileTransfer = new FileTransfer();
- fileTransfer.upload(data, "http://cordova-filetransfer.jitsu.com/upload",
- logCallback('FileTransfer.upload', true),
- logCallback('FileTransfer.upload', false), options);
- },
- onGetPictureError,
- { destinationType: Camera.DestinationType.NATIVE_URI,
- sourceType: Camera.PictureSourceType.PHOTOLIBRARY });
- };
-
function displayImageUsingCanvas() {
var canvas = document.getElementById('canvas');
var img = document.getElementById('camera_image');