From 70e96f5824615d39fa45b372f7e41a769bbf8ae4 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; } };