From 4a7082c895fd381f87e2957bdb45b013ebc5a2fa Mon Sep 17 00:00:00 2001 From: Alexander Gusev Date: Thu, 23 Apr 2020 08:21:38 +0300 Subject: [PATCH] chore: Remove arbitary comments from examples files --- examples/abilities-list.js | 3 --- examples/camera-abilities.js | 2 -- examples/camera-autoselect.js | 2 -- examples/camera-info.js | 2 -- examples/camera-list-autodetect.js | 2 -- examples/camera-list-populate.js | 2 -- examples/camera-liveview-file.js | 2 -- examples/camera-liveview.js | 2 -- examples/camera-scenario-async.js | 2 -- examples/camera-scenario.js | 2 -- examples/camera.js | 2 -- examples/port-list.js | 2 -- examples/widgets.js | 2 -- 13 files changed, 27 deletions(-) diff --git a/examples/abilities-list.js b/examples/abilities-list.js index 5ba4676..b86cd26 100644 --- a/examples/abilities-list.js +++ b/examples/abilities-list.js @@ -1,7 +1,4 @@ const { AbilitiesList, PortInfoList, GPhoto2Driver, checkCode } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous two lines to: -// const { checkCode } = require('@typedproject/gphoto2-driver/driver'); -// const { AbilitiesList, PortInfoList, GPhoto2Driver } = require('@typedproject/gphoto2-driver'); const ref = require('ref'); const abilitiesList = new AbilitiesList(); diff --git a/examples/camera-abilities.js b/examples/camera-abilities.js index 9d2e9eb..ecc8ff7 100644 --- a/examples/camera-abilities.js +++ b/examples/camera-abilities.js @@ -1,6 +1,4 @@ const { Camera, closeQuietly, GPPortType, GPCameraDriverStatus, GPCameraFileOperation, GPCameraFolderOperation, GPDeviceType } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous line to: -// const { Camera, closeQuietly, GPPortType, GPCameraDriverStatus, GPCameraFileOperation, GPCameraFolderOperation, GPDeviceType } = require('@typedproject/gphoto2-driver'); const camera = new Camera(); try { diff --git a/examples/camera-autoselect.js b/examples/camera-autoselect.js index a09f3b0..2ee5655 100644 --- a/examples/camera-autoselect.js +++ b/examples/camera-autoselect.js @@ -1,6 +1,4 @@ const { Camera, closeQuietly } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous line to: -// const { Camera, closeQuietly } = require('@typedproject/gphoto2-driver'); const path = require('path'); const camera = new Camera(); diff --git a/examples/camera-info.js b/examples/camera-info.js index 68109bb..b4b6581 100644 --- a/examples/camera-info.js +++ b/examples/camera-info.js @@ -1,8 +1,6 @@ const SegfaultHandler = require('segfault-handler'); const path = require('path'); const { CameraList, closeQuietly } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous line to: -// const { CameraList, closeQuietly } = require('@typedproject/gphoto2-driver'); SegfaultHandler.registerHandler('crash.log'); diff --git a/examples/camera-list-autodetect.js b/examples/camera-list-autodetect.js index f05255a..706e5e1 100644 --- a/examples/camera-list-autodetect.js +++ b/examples/camera-list-autodetect.js @@ -1,7 +1,5 @@ const SegfaultHandler = require('segfault-handler'); const { CameraList, PortInfoList } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous line to: -// const { CameraList, PortInfoList } = require('@typedproject/gphoto2-driver'); SegfaultHandler.registerHandler('crash.log'); diff --git a/examples/camera-list-populate.js b/examples/camera-list-populate.js index d3f270f..2bb1af6 100644 --- a/examples/camera-list-populate.js +++ b/examples/camera-list-populate.js @@ -1,7 +1,5 @@ const SegfaultHandler = require('segfault-handler'); const { CameraList, PortInfoList } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous line to: -// const { CameraList, PortInfoList } = require('@typedproject/gphoto2-driver'); SegfaultHandler.registerHandler('crash.log'); diff --git a/examples/camera-liveview-file.js b/examples/camera-liveview-file.js index 8686fcf..dc1a8c1 100644 --- a/examples/camera-liveview-file.js +++ b/examples/camera-liveview-file.js @@ -2,8 +2,6 @@ // and then save it to .mjpg file. The file will be updated in live mode. const { Camera } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous two lines to: -// const { Camera } = require('@typedproject/gphoto2-driver'); const path = require('path'); const camera = new Camera(); diff --git a/examples/camera-liveview.js b/examples/camera-liveview.js index 65b3c74..1632ce6 100644 --- a/examples/camera-liveview.js +++ b/examples/camera-liveview.js @@ -6,8 +6,6 @@ // if you see a lot of ffd9 (not in the first column) - then it works const { Camera } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous two lines to: -// const { Camera } = require('@typedproject/gphoto2-driver'); const camera = new Camera(); const NUMBER_OF_SECONDS_TO_LISTEN = 10; diff --git a/examples/camera-scenario-async.js b/examples/camera-scenario-async.js index 306895f..e8b9ba0 100644 --- a/examples/camera-scenario-async.js +++ b/examples/camera-scenario-async.js @@ -1,6 +1,4 @@ const { Camera, closeQuietly, CameraWidgets } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous line to: -// const { Camera, closeQuietly, CameraWidgets } = require('@typedproject/gphoto2-driver'); const path = require('path'); diff --git a/examples/camera-scenario.js b/examples/camera-scenario.js index 3dab956..72e81c8 100644 --- a/examples/camera-scenario.js +++ b/examples/camera-scenario.js @@ -1,6 +1,4 @@ const {Camera, closeQuietly, CameraWidgets} = require("@typedproject/gphoto2-driver"); -// If you launch this example not from library folder, change the previous line to: -// const { Camera, closeQuietly, CameraWidgets } = require('@typedproject/gphoto2-driver'); const path = require("path"); diff --git a/examples/camera.js b/examples/camera.js index 621092c..cb02b55 100644 --- a/examples/camera.js +++ b/examples/camera.js @@ -1,8 +1,6 @@ const SegfaultHandler = require('segfault-handler'); const path = require('path'); const { CameraList, closeQuietly } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous line to: -// const { CameraList, closeQuietly } = require('@typedproject/gphoto2-driver'); SegfaultHandler.registerHandler('crash.log'); diff --git a/examples/port-list.js b/examples/port-list.js index 45b9c3e..bb14648 100644 --- a/examples/port-list.js +++ b/examples/port-list.js @@ -1,6 +1,4 @@ const { PortInfoList } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous line to: -// const { PortInfoList } = require('@typedproject/gphoto2-driver'); const portList = new PortInfoList(); diff --git a/examples/widgets.js b/examples/widgets.js index 2bc8ad8..b6ed9d3 100644 --- a/examples/widgets.js +++ b/examples/widgets.js @@ -1,7 +1,5 @@ const fs = require('fs'); const { CameraList, CameraWidgets, closeQuietly } = require('@typedproject/gphoto2-driver'); -// If you launch this example not from library folder, change the previous line to: -// const { CameraList, closeQuietly } = require('@typedproject/gphoto2-driver'); const cameraList = new CameraList().load();