diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py index 8f204b1bef7..949f77775e8 100644 --- a/youtube_dl/jsinterp.py +++ b/youtube_dl/jsinterp.py @@ -900,12 +900,6 @@ def eval_method(variable, member): else: raise self.Exception('Unsupported Function method ' + func_prototype, expr) member = new_member - if False and isinstance(obj, type): - prototype = member.split('.') - if len(prototype) == 3 and prototype[0::2] == ['prototype', 'call']: - assertion(len(argvals) > 0, 'needs an instance') - obj = argvals.pop(0) - member = prototype[1] if obj is compat_str: if member == 'fromCharCode':