cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hermw...@apache.org
Subject [1/2] git commit: removed redundant code
Date Tue, 30 Apr 2013 21:30:36 GMT
Updated Branches:
  refs/heads/master d0c8408b2 -> 57ebfb7a3


removed redundant code


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/d8d7e5d3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/d8d7e5d3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/d8d7e5d3

Branch: refs/heads/master
Commit: d8d7e5d3f4da39cc1af649b0b70cd5cb18395dcf
Parents: d0c8408
Author: hermwong <herm.wong@gmail.com>
Authored: Tue Apr 30 14:28:44 2013 -0700
Committer: hermwong <herm.wong@gmail.com>
Committed: Tue Apr 30 14:28:44 2013 -0700

----------------------------------------------------------------------
 www/device-motion.js |   38 --------------------------------------
 1 files changed, 0 insertions(+), 38 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/d8d7e5d3/www/device-motion.js
----------------------------------------------------------------------
diff --git a/www/device-motion.js b/www/device-motion.js
deleted file mode 100644
index b6cf929..0000000
--- a/www/device-motion.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-// TODO: add the path to the requires
-var Accelerometer = require('');
-var watchID;
-
-module.exports = {
-    getCurrentAcceleration:function(win, fail) {
-        navigator.accelerometer.getCurrentAcceleration(win,fail);
-    }
-    
-    watchAcceleration:function(win, fail, [options]) {
-        watchID = navigator.accelerometer.watchAccelerometer(win, fail, [options]);
-    }
-    
-    clearWatch:function() {
-        navigator.accelerometer.clearWatch(watchID);
-    }
-};


Mime
View raw message