function removeHooks (hookName, handler) {
  const { __hooks } = this
  if (!__hooks) {
    return
  }

  if (Array.isArray(__hooks[hookName])) {
    const hooks = __hooks[hookName]
    const index = findHookIndex.call(this, hookName, handler)

    if (index !== -1) {
      hooks.splice(index, 1)
    }
  } else if (__hooks[hookName]) {
    __hooks[hookName] = null
    // delete __hooks[hookName]
  }
}
remove hook
@param { string } hookName
@param { (plugin: any, ..args) => {} } handler
@returns void