diff --git a/src/index.js b/src/index.js index d50ee1dc..4784970e 100644 --- a/src/index.js +++ b/src/index.js @@ -79,10 +79,6 @@ var Image = require('./image.js'); * }); */ function Compute(options) { - if (!(this instanceof Compute)) { - return new Compute(options); - } - options = common.util.normalizeArguments(this, options); var config = { diff --git a/test/index.js b/test/index.js index a59e2669..e07353cf 100644 --- a/test/index.js +++ b/test/index.js @@ -202,12 +202,6 @@ describe('Compute', function() { assert(compute instanceof Compute); }); - it('should work without new', function() { - assert.doesNotThrow(function() { - Compute({projectId: PROJECT_ID}); - }); - }); - it('should normalize the arguments', function() { var normalizeArgumentsCalled = false; var options = {};