code: private void inlineEmptyMethod(NodeTraversal t, Node parent, Node call) {
      // If the return value of the method call is read,
      // replace it with "void 0". Otherwise, remove the call entirely.
  
      if (NodeUtil.isExprCall(parent)) {
        parent.replaceWith(IR.empty());
        NodeUtil.markFunctionsDeleted(parent, compiler);
      } else {
        Node srcLocation = call;
        parent.replaceChild(call, NodeUtil.newUndefinedNode(srcLocation));
        NodeUtil.markFunctionsDeleted(call, compiler);
      }
      t.reportCodeChange();
    }
docs: Remove the provided object and its method call.