You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2021/11/06 23:04:15 UTC

[cordova-ios] branch master updated: chore: remove unused and outdated listStartedEmulators (#1183)

This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git


The following commit(s) were added to refs/heads/master by this push:
     new 896dacb  chore: remove unused and outdated listStartedEmulators (#1183)
896dacb is described below

commit 896dacb092209937e91abb16c07c29a7914acb3f
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Sun Nov 7 00:04:06 2021 +0100

    chore: remove unused and outdated listStartedEmulators (#1183)
---
 .../scripts/cordova/lib/listStartedEmulators.js    | 50 ----------------------
 1 file changed, 50 deletions(-)

diff --git a/bin/templates/scripts/cordova/lib/listStartedEmulators.js b/bin/templates/scripts/cordova/lib/listStartedEmulators.js
deleted file mode 100644
index ec1cb7f..0000000
--- a/bin/templates/scripts/cordova/lib/listStartedEmulators.js
+++ /dev/null
@@ -1,50 +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.
-*/
-
-const { superspawn: { spawn } } = require('cordova-common');
-
-/**
- * Gets list of running iOS simulators
- * @return {Promise} Promise fulfilled with list of running iOS simulators
- *
- * @todo In the next PR, I will refactor this entire method.
- *
- * The process no longer contains the pattern "[i]OS Simulator".
- * The process is now called "Simulator.app"
- *
- * Additionaly, `defaults read com.apple.iphonesimulator "SimulateDevice"` is also not valid aymore.
- *
- * I will replace this entire method to locate the active simulators though `simctl`
- *
- * Alternativly, remove this file. It is not documented in Cordova and not used anywhere in our code base.
- */
-function listStartedEmulators () {
-    // wrap exec call into promise
-    return spawn('ps', ['aux'])
-        .then(output => {
-            if (output.match(/[i]OS Simulator/)) {
-                return spawn('defaults', ['read', 'com.apple.iphonesimulator', '"SimulateDevice"']);
-            }
-
-            return '';
-        })
-        .then(output => output.split('\n'));
-}
-
-exports.run = listStartedEmulators;

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org