# 메소드 관련

### 1.   오버로딩 된 메소드 삭제

{% hint style="success" %}
**고도몰's 개발자 코멘트**

커스터마이징을 하지 않았음에도 무의식적으로 메소드를 남겨놓는 경우가 있습니다.\
사용 되지 않는 메소드를 남겨둘 경우 성능개선 및 기능개선 배포 내용이 반영 되지 않을 수 있으니, \
불필요한 메소드는 삭제하여주세요.&#x20;
{% endhint %}

#### ⛔️ As-Is

```php
namespace Component\Excel;

class ExcelRequest extends \Bundle\Component\Excel\ExcelRequest
{
    public function saveInfoExcelRequest($arrData)
    {
        // 부모 메소드와 동일한 내용 (즉, 커스터마이징을 하지 않은 경우)
    }
}
```

#### ✅ To-be

```php
namespace Component\Excel;

class ExcelRequest extends \Bundle\Component\Excel\ExcelRequest
{
    // 불필요한 오버라이딩 메소드 삭제
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devcenter-help.nhn-commerce.com/guide/wrong-example/method-violation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
