remove unused device.js
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/7ab8379a Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/7ab8379a Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/7ab8379a Branch: refs/heads/master Commit: 7ab8379a54fd7c79ad8b603b8ae293a694249df3 Parents: 980f31e Author: Jesse MacFadyen <purplecabb...@gmail.com> Authored: Sat Oct 6 01:50:05 2012 -0700 Committer: Jesse MacFadyen <purplecabb...@gmail.com> Committed: Sat Oct 6 01:50:05 2012 -0700 ---------------------------------------------------------------------- lib/windows8/plugin/windows8/device.js | 57 --------------------------- 1 files changed, 0 insertions(+), 57 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/7ab8379a/lib/windows8/plugin/windows8/device.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/device.js b/lib/windows8/plugin/windows8/device.js deleted file mode 100644 index 8cfb181..0000000 --- a/lib/windows8/plugin/windows8/device.js +++ /dev/null @@ -1,57 +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. - * -*/ - - - -if(!console || !console.log) -{ - var exec = require('cordova/exec'), - channel = require('cordova/channel'); - - - - var debugConsole = { - log:function(msg){ - exec(null,null,"DebugConsole","log",msg); - }, - warn:function(msg){ - exec(null,null,"DebugConsole","warn",msg); - }, - error:function(msg){ - exec(null,null,"DebugConsole","error",msg); - } - }; - - - module.exports = debugConsole; -} -else -{ - - if(console && console.log) - { - console.log("console.log exists already!"); - console.warn = console.warn || function(msg){console.log("warn:"+msg);}; - console.error = console.error || function(msg){console.log("error:"+msg);}; - - } -} -