Closed Bug 63194 Opened 25 years ago Closed 17 years ago

Remove unused nsMetaCharsetObserver::Notify

Categories

(Core :: Internationalization, defect)

defect
Not set
trivial

Tracking

()

RESOLVED INVALID

People

(Reporter: nhottanscp, Assigned: smontagu)

References

()

Details

Separated from bug 62754. Please removed unused nsMetaCharsetObserver::Notify.
Summary: Removed unused nsMetaCharsetObserver::Notify → Remove unused nsMetaCharsetObserver::Notify
nhotta, could you include more info into this bug?
Status: NEW → ASSIGNED
It was pointed out by harrshd when he fixed bug 62754. There are several nsMetaCharsetObserver::Notify but some are not used and should be removed. http://lxr.mozilla.org/seamonkey/search?string=nsMetaCharsetObserver%3A%3ANotify Harrish, do you know which one should be removed?
I think this will help a little bit to reduce footprint. reassign to yokoyama. I don't think this is that important to spend time now for now. But one byte is one byte....
Assignee: ftang → yokoyama
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Updating the target milestone.
Priority: -- → P3
Target Milestone: --- → mozilla0.8
Target Milestone: mozilla0.8 → mozilla0.9
Target Milestone: mozilla0.9 → ---
Changed QA contact to yokoyama@netscape.com.
QA Contact: teruko → yokoyama
Harrish, do you know which one should be removed?
You should probably talk to ftang.
not critical. move to future
Target Milestone: --- → Future
Bug 62754 comment 15: {{ vidur (gone) 2000-12-18 11:16:20 PDT The unused nsMetaCharsetObserver::Notify() methods should be eliminated. }} That patch did {{ - return Notify((nsISupports*)aDocumentID, &keys, &values); + return NS_OK;//Notify((nsISupports*)aDocumentID, &keys, &values); }} in <mozilla/htmlparser/src/nsMetaCharsetObserver.cpp>. But that 3-arg method was still called from another line. ***** Then, there has been: {{ 96364 - Register html tag observers directly to parser service rather than nsObserverService. Doing so, reduces a lot of overhead. Also, the observers are now notified via sink. This eliminates the need for parser bundle. r=dp,shanjian,sfraser, sr=rpotts. }} <mozilla/intl/chardet/src/nsMetaCharsetObserver.h> 1.8 harishd%netscape.com 2001-09-28 16:08 <mozilla/intl/chardet/src/nsMetaCharsetObserver.cpp> 1.51 harishd%netscape.com 2001-09-28 16:08 which did {{ - NS_IMETHOD Notify(nsISupports* aDocumentID, const nsStringArray* keys, const nsStringArray* values); + NS_IMETHOD Notify(nsISupports* aWebShell, + nsISupports* aChannel, + const nsStringArray* keys, + const nsStringArray* values); }} But did not update the commented out call from bug 62754 patch. ***** Now (Gecko v1.9.1a2pre), I tried (as a test) to remove the 5 methods, and got: {{ ...\mozilla\intl\chardet\src\nsCharDetConstructors.h (64) : error C2259: 'nsMetaCharsetObserver' : cannot instantiate abstract class due to following members: 'nsresult nsIElementObserver::Notify(nsISupports *,nsISupports *,const PRUnichar *,const nsStringArray *,const nsStringArray *,const PRUint32)' : is abstract ../../../dist/include/htmlparser\nsIElementObserver.h(80) : see declaration of 'nsIElementObserver::Notify' 'nsresult nsIElementObserver::Notify(PRUint32,const PRUnichar *,PRUint32,const PRUnichar *[],const PRUnichar *[])' : is abstract ../../../dist/include/htmlparser\nsIElementObserver.h(76) : see declaration of 'nsIElementObserver::Notify' 'nsresult nsIElementObserver::Notify(PRUint32,nsHTMLTag,PRUint32,const PRUnichar *[],const PRUnichar *[])' : is abstract ../../../dist/include/htmlparser\nsIElementObserver.h(72) : see declaration of 'nsIElementObserver::Notify' }} One at a time, I had to readd the 5 methods... My guesses/questions would be: *Was this bug "invalid" ? *Need to remove/document the commented out call ! *Want to remove the whole class ??
Assignee: tetsuroy → smontagu
Severity: normal → trivial
Status: ASSIGNED → NEW
Priority: P3 → --
QA Contact: tetsuroy → i18n
Target Milestone: Future → ---
I believe this is INVALID
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.