Yes. I realize it's an adaptation.
My point was, were I a game designer for a big game company (oh, like Bioware maybe)... I'd clean that crap all up and get rid of it before it went out the door.
There's NO reason to have oodles of files that the game DOES load and require resources for that do absolutely nothing for the game.
Plus I guess when it comes to files and code and such, I tend to be a bit of a neat freak. Just gets on my nerves... But I still think lack of time is a fairly good bet as to why we see some of the mess we do, and very possibly why some of the source was left lying around to begin with.
Check this comment out for a small chuckle:
// 771. YavinHackCloseDoor
// This is an incredibly hacky function to allow the doors to be properly
// closed on Yavin without running into the problems we've had. It is too
// late in development to fix it correctly, so thus we do this. Life is
// hard. You'll get over it
void YavinHackCloseDoor( object oidDoor );
And yes, that's the actual function in the actual script that wound up used in the final version. There's a lot of other little bits and pieces you can find if you dig that suggest things were semi-rushed towards the end too. Like there's a couple scripts that allow you to enable travel to various other planets on the galaxy map. One of 'em (Taris) even has a graphic on the map, and if you go there, you start Taris over again as far as I could tell lol. Others appear as white squares on the galaxy map, and you do NOT wanna step off the Ebon Hawk once you arrive