Code that is purely utilitarian (see “useful articles doctrine”) isn’t a work of human expression that is copyrightable.
That's not really a factor in determining what's eligible for copyright protection.