blackberry / BB10-WebWorks-Framework

The BB10 WebWorks Framework is packaged within an application BAR file to run on a BB10 device (or simulator)
60 stars 34 forks source link

Prune unused code #72

Open gtanner opened 12 years ago

gtanner commented 12 years ago

I am thinking I am seeing a lot of dead / unused code in this project by looking it over:

Examples:

I am sure there is a lot more based on my quick glance. The codebase is starting to have a lot of cruft around it and needs to be cleaned up as it is hard to follow what is new / old / used / unused.

nukulb commented 12 years ago

I understand the first two references, what is wrong with bridge.js, I am pretty sure that is still being used.

The bbx-emulator is not being used which is just a matter of removing the submodule reference. I don't think the testbed.html is being used so I am sure that can go. There is code that is still here that was used for last deliverable. We will clean it after this current deliverable.

gtanner commented 12 years ago

I did a quick search for references to it and didn't see any. I may have grepped incorrectly though. Sent on the TELUS Mobility network with BlackBerry

nukulb commented 12 years ago

the code for grabbing plugins hasn't been modified, so it is still used in the exact same way as before

dansilivestru commented 12 years ago

Just did a grep, didn't see the bridge used anywhere but in the unit tests.

nukulb commented 12 years ago

Weird, I will get the team to have a look ------Original Message------ From: Dan Silivestru To: Nukul Bhasin Subject: Re: [BB10-WebWorks-Framework] Prune unused code (#72) Sent: Apr 13, 2012 5:21 PM

Just did a grep, didn't see the bridge used anywhere but in the unit tests.


Reply to this email directly or view it on GitHub: https://github.com/blackberry/BB10-WebWorks-Framework/issues/72#issuecomment-5125216

Sent from my BlackBerry device on the Rogers Wireless Network

nukulb commented 12 years ago

@jeffheifetz confirmed that we are using it, he will comment on this to let you know how exactly, but I believe we don't use it as a require statement.

jeffheifetz commented 12 years ago

The bridge is being used via URI here - https://github.com/blackberry-webworks/BB10-WebWorks-Framework/blob/next/lib/public/window-webworks.js#L131

gtanner commented 12 years ago

Would explain why it didn't come up in a grep, still a lot of pruning to do though :)