Skip to content

Unused variables? #2

@drewish

Description

@drewish

In HTTPDigestAuth there's a _thread_local value that's assigned but then never used:

  constructor(username, password) {
    this.username = username
    this.password = password
    //# Keep state in per-thread local storage
    this._thread_local = {}
    this.init_state()
  }

I'm trying to decide if it's just left over from something or if it's there to trigger some behavior in paw.

I'm leaning towards just unused since there's also some other ones:

  init_state() {
    this.init = true
    this.last_nonce = ''
    this.nonce_count = 0
    this.chal = {}
    this.pos = null
    this.num_401_calls = null
  }

Has a init, pos, and num_401_calls and none of them seem to be read.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions