Other than that, the majority of compiled languages do remove unused library code when static linking.