Closed Bug 149102 Opened 23 years ago Closed 23 years ago

Kill TypicalInput/OutputStream

Categories

(Core :: XPCOM, defect, P2)

x86
Windows 2000
defect

Tracking

()

RESOLVED FIXED
mozilla1.1beta

People

(Reporter: alecf, Assigned: alecf)

Details

(Whiteboard: fix in hand)

Attachments

(2 files)

we have this old nsFileSpec-based input stream that you create with NS_NewTypicalOutputFileStream - we could eliminate alot of dead code. 2 patches forthcoming - one to eliminate consumers, and one to remove it from xpcom.
There is some other minor cleanup in this patch: 1) using the PRBool() operator in BoolRegistryEntry in nsWindowsHooks.cpp - for some reason we were leaping through the void*() operator, and this fixes that, making the code much easier to read. 2) using the directory service to find the temporary directory for plugin streams, rather than having a platform-specific #ifdef I'd love an r=dougt, sr=jaggernaut on this, but I'm also going to get an r=av on the plugin stuff.
Adding plugins engineers for feedback on plugin code changes. Thank, Alec, for letting me know.
Comment on attachment 86280 [details] [diff] [review] fix consumers, other cleanup alec, optionally instead of nsCOMPtr<nsILocalFile> path = do_CreateInstance(NS_LOCAL_FILE_CONTRACTID, &rv); You could call NS_NewLocalFile(). See nsILocalFile (soon to be moved to nsXPCOM.h) nit: You spaced all the other correctly. The paran and semicolon should be spaced out. + prefs->mHandleHTTP = BoolRegistryEntry( "isHandlingHTTP"); + prefs->mHandleHTTPS = BoolRegistryEntry( "isHandlingHTTPS" ); r=dougt
Attachment #86280 - Flags: review+
Are we getting rid of nsFileSpec alltogether? Then we have more consumers in the plugin code, I think.
That's a different bug.
av/peterl/serge - so can I get an r= from one of you on the plugin part of this patch? I just want to make sure I'm doing the right thing here.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.1alpha
Comment on attachment 86280 [details] [diff] [review] fix consumers, other cleanup fine with me, r=av
Comment on attachment 86280 [details] [diff] [review] fix consumers, other cleanup sr=jag
Attachment #86280 - Flags: superreview+
mozilla 1.1alpha already passed, just moving out to 1.1beta
Target Milestone: mozilla1.1alpha → mozilla1.1beta
ok, no need to export these functions any more - allows compiler/linker to possibly optimize them away... can I get another review here? this one is easy...dougt? jag?
oh that also kills some nsOutputConsoleStream which is only used in FilesTest, which is only used to test the outdated nsFileSpec - I've been slowly dismantling FilesTest as I've hacked apart nsFileSpec, I don't think anyone even runs it anymore. So anyway, I'm taking xpcom/tests/FileTest.cpp out of the build as well.
Comment on attachment 87545 [details] [diff] [review] stop exporting NS_NewTypical* sr=jag
Attachment #87545 - Flags: superreview+
Comment on attachment 87545 [details] [diff] [review] stop exporting NS_NewTypical* r=dougt. good stuff!
Attachment #87545 - Flags: review+
Whiteboard: fix in hand
done and done.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: