Closed Bug 1412978 Opened 7 years ago Closed 6 years ago

Delete nsFileSystemDataSource as it seems to be dead code

Categories

(Core Graveyard :: RDF, enhancement)

enhancement
Not set
normal

Tracking

(firefox58 wontfix, firefox59 fixed)

RESOLVED FIXED
mozilla59
Tracking Status
firefox58 --- wontfix
firefox59 --- fixed

People

(Reporter: marco, Assigned: marco)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

From the code coverage report, it looks like this file is never executed during tests.
From a quick inspection, it looks like dead code to me.
Attachment #8923554 - Flags: review?(l10n)
Marco, which inspection did you do to tell if this is dead code?

I'm asking because the lack of test coverage doesn't mean a whole lot in RDF land.
Flags: needinfo?(mcastelluccio)
(In reply to Axel Hecht [:Pike] from comment #2)
> Marco, which inspection did you do to tell if this is dead code?
> 
> I'm asking because the lack of test coverage doesn't mean a whole lot in RDF
> land.

I couldn't find any reference to the contract ID of the service, that is "@mozilla.org/rdf/datasource;1?name=files".
Flags: needinfo?(mcastelluccio)
Comment on attachment 8923554 [details] [diff] [review]
Remove nsFileSystemDataSource

Review of attachment 8923554 [details] [diff] [review]:
-----------------------------------------------------------------

Actually, https://dxr.mozilla.org/comm-central/source/suite/common/directory/directory.xul#24 still uses the file system datasource.

Frank-Rainer, what's your take?

Clearing the review on me for now.
Attachment #8923554 - Flags: review?(l10n) → feedback?(frgrahl)
If it is only used in comm-central, we can disable building it in Firefox.
Seems to be linked to:
 
https://dxr.mozilla.org/comm-central/source/mozilla/xpfe/components/directory

and pretty old code I don't know much about

IanN, stefanh do you know what this one does in suite?
Flags: needinfo?(stefanh)
Flags: needinfo?(iann_bugzilla)
Attachment #8923554 - Flags: feedback?(frgrahl) → feedback?(iann_bugzilla)
(In reply to Frank-Rainer Grahl (:frg) from comment #6)
> IanN, stefanh do you know what this one does in suite?

It displays a directory listing as a XUL tree, see http://kb.mozillazine.org/Network.dir.format and https://dxr.mozilla.org/mozilla-central/rev/c2248f85346939d3e0b01f57276c440ccb2d16a1/xpfe/components/directory/nsDirectoryViewer.cpp#1253

Does it work? I couldn't resist trying and it still works for local directory listings. Don't know if anyone uses it, though. The default is to display dir listings in html format.
Flags: needinfo?(stefanh)
> Does it work?

Probably but I don't see any actual use of it in SeaMonkey. Not needed for ftp as far as I see it. Maybe this was used in add-ons a long time ago? There is also nsIHTTPIndex, nsHTTPIndex and the xpfe/components/directory/ See some references for HTTPIndex in suite but they seem to be removable too. Before we rip out code I would really like to wait for IanNs advice/remarks.
oops http-index-format is still needed I think :)
Network.dir.format also works with ftp directory listings. See bug 1239239.
Thanks. I see it now. Only used with network.dir.format set to 3.

So IanN should decide what to do. ftp access will not be broken by removing it and if I need full access I am using FileZilla anyway so fine with me either way.

FRG
Comment on attachment 8923554 [details] [diff] [review]
Remove nsFileSystemDataSource

f=me

Will need to spin off bugs to deal with removing other code from both suite and xpfe and any other fallout.
Flags: needinfo?(iann_bugzilla)
Attachment #8923554 - Flags: feedback?(iann_bugzilla) → feedback+
Attachment #8923554 - Flags: review?(l10n)
Comment on attachment 8923554 [details] [diff] [review]
Remove nsFileSystemDataSource

Review of attachment 8923554 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks, r=me.

This will create a conflict with bug 685236, but not in a bad way.
Attachment #8923554 - Flags: review?(l10n) → review+
Pushed by mcastelluccio@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/24ad01d1f86b
Delete nsFileSystemDataSource as it is dead code. r=Pike
https://hg.mozilla.org/mozilla-central/rev/24ad01d1f86b
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
It's too late for 58, won't fix for 58.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: