From 134c1ee1620971937c9d9063455309646c76048c Mon Sep 17 00:00:00 2001 From: lucasfcosta Date: Sun, 12 Mar 2017 13:40:51 -0300 Subject: [PATCH] Remove unused chain behavior --- lib/sinon/behavior.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/sinon/behavior.js b/lib/sinon/behavior.js index 42112d778..8ccd5b4fa 100644 --- a/lib/sinon/behavior.js +++ b/lib/sinon/behavior.js @@ -160,14 +160,6 @@ var proto = { "is not supported. Use \"stub.withArgs(...).onCall(...)\" " + "to define sequential behavior for calls with certain arguments." ); - }, - - chain: function chain() { - /** - * "this" is stub when method is called directly on stub, e.g. stub.returns(123); - * "this.stub" exists when method is called from onCall chaining, e.g. stub.onCall(0).returns(123) - */ - return this.stub || this; } };