Skip to content

Commit c8779f1

Browse files
committed
remove dead code
1 parent 23bd49f commit c8779f1

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/compiler.js

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -383,18 +383,6 @@ CompilerProto.bindDirective = function (directive) {
383383
binding.instances.push(directive)
384384
directive.binding = binding
385385

386-
// for newly inserted sub-VMs (repeat items), need to bind deps
387-
// because they didn't get processed when the parent compiler
388-
// was binding dependencies.
389-
var i, dep, deps = binding.contextDeps
390-
if (deps) {
391-
i = deps.length
392-
while (i--) {
393-
dep = compiler.bindings[deps[i]]
394-
dep.subs.push(directive)
395-
}
396-
}
397-
398386
var value = binding.value
399387
// invoke bind hook if exists
400388
if (directive.bind) {
@@ -539,27 +527,6 @@ CompilerProto.markComputed = function (binding) {
539527
this.computed.push(binding)
540528
}
541529

542-
/**
543-
* Process subscriptions for computed properties that has
544-
* dynamic context dependencies
545-
*/
546-
CompilerProto.bindContexts = function (bindings) {
547-
var i = bindings.length, j, k, binding, depKey, dep, ins
548-
while (i--) {
549-
binding = bindings[i]
550-
j = binding.contextDeps.length
551-
while (j--) {
552-
depKey = binding.contextDeps[j]
553-
k = binding.instances.length
554-
while (k--) {
555-
ins = binding.instances[k]
556-
dep = ins.compiler.bindings[depKey]
557-
dep.subs.push(ins)
558-
}
559-
}
560-
}
561-
}
562-
563530
/**
564531
* Retrive an option from the compiler
565532
*/

0 commit comments

Comments
 (0)