Skip to content

Commit 493fc68

Browse files
authored
cleanup: delete unused variables in functions/helloworld (#1556)
1 parent b00d00e commit 493fc68

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

functions/helloworld/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"@google-cloud/pubsub": "^1.0.0",
2929
"@google-cloud/storage": "^4.0.0",
3030
"child-process-promise": "^2.2.1",
31-
"delay": "^4.3.0",
3231
"express": "^4.16.3",
3332
"mocha": "^6.1.4",
3433
"moment": "^2.24.0",

functions/helloworld/test/index.test.js

-11
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,8 @@ const sinon = require('sinon');
2121
const execPromise = require('child-process-promise').exec;
2222

2323
const program = require('..');
24-
25-
const {PubSub} = require('@google-cloud/pubsub');
26-
const pubsub = new PubSub();
27-
const {Storage} = require('@google-cloud/storage');
28-
const storage = new Storage();
29-
30-
const topicName = process.env.FUNCTIONS_TOPIC;
31-
32-
const localFileName = 'test.txt';
3324
const fileName = `test-${uuid.v4()}.txt`;
34-
3525
const bucketName = process.env.FUNCTIONS_BUCKET;
36-
const bucket = storage.bucket(bucketName);
3726

3827
const startFF = (target, signature, port) => {
3928
const cwd = path.join(__dirname, '..');

functions/helloworld/test/sample.system.pubsub.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
// [START functions_pubsub_system_test]
1616
const childProcess = require('child_process');
17-
const delay = require('delay');
1817
const assert = require('assert');
1918
const uuid = require('uuid');
2019
const {PubSub} = require('@google-cloud/pubsub');

functions/helloworld/test/sample.system.storage.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const uuid = require('uuid');
1919
const assert = require('assert');
2020
const path = require('path');
2121
const childProcess = require('child_process');
22-
const delay = require('delay');
2322
const moment = require('moment');
2423
const promiseRetry = require('promise-retry');
2524

0 commit comments

Comments
 (0)