Skip to content

Commit 14a9be6

Browse files
committed
Delete dead code - unused (and broken) secondary BoundFunction constructor
1 parent 387dd3a commit 14a9be6

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

lib/Runtime/Library/BoundFunction.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ namespace Js
2424
count(0),
2525
boundArgs(nullptr)
2626
{
27-
2827
DebugOnly(VerifyEntryPoint());
2928
AssertMsg(args.Info.Count > 0, "wrong number of args in BoundFunction");
3029

@@ -90,27 +89,6 @@ namespace Js
9089
SetPropertyWithAttributes(PropertyIds::length, TaggedInt::ToVarUnchecked(len), PropertyConfigurable, nullptr, PropertyOperation_None, SideEffects_None);
9190
}
9291

93-
BoundFunction::BoundFunction(RecyclableObject* targetFunction, Var boundThis, Var* args, uint argsCount, DynamicType * type)
94-
: JavascriptFunction(type, &functionInfo),
95-
count(argsCount),
96-
boundArgs(nullptr)
97-
{
98-
DebugOnly(VerifyEntryPoint());
99-
100-
this->targetFunction = targetFunction;
101-
this->boundThis = boundThis;
102-
103-
if (argsCount != 0)
104-
{
105-
this->boundArgs = RecyclerNewArray(this->GetScriptContext()->GetRecycler(), Field(Var), argsCount);
106-
107-
for (uint i = 0; i < argsCount; i++)
108-
{
109-
this->boundArgs[i] = args[i];
110-
}
111-
}
112-
}
113-
11492
BoundFunction* BoundFunction::New(ScriptContext* scriptContext, ArgumentReader args)
11593
{
11694
Recycler* recycler = scriptContext->GetRecycler();

lib/Runtime/Library/BoundFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Js
1919
protected:
2020
BoundFunction(DynamicType * type);
2121
BoundFunction(Arguments args, DynamicType * type);
22-
BoundFunction(RecyclableObject* targetFunction, Var boundThis, Var* args, uint argsCount, DynamicType *type);
22+
2323
public:
2424
static BoundFunction* New(ScriptContext* scriptContext, ArgumentReader args);
2525

0 commit comments

Comments
 (0)