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; } };