Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 679165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:13:47+00:00 2026-05-14T01:13:47+00:00

We have a project which had to be radically descoped in order to ship

  • 0

We have a project which had to be radically descoped in order to ship on time. It’s got a lot of code left in it which is not actually used. I want to clean up the code, removing any dead-wood. I have the authority to do it and I can convince people that it’s a commercially sensible thing to do. [I have a lot of automated unit tests, some automated acceptance tests and a team of testers who can manually regression test.]

My problem: I’m a manager and I don’t know technically how to go about it.

Any help?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:13:47+00:00Added an answer on May 14, 2026 at 1:13 am

    I assume the question is how to find the code that isn’t being used, correct? The answer is a little different in different languages, but there are some general approaches. My very first job out of school was to find and remove tens of thousands of lines of unused code in a large shipping project.

    The first principle is to focus on those things that are never called rather than just unnecessary. Finding and removing the former is a very mechanical and low-risk approach. The latter is a refactoring effort and a bit more complex. Always best to take out the easy stuff first.

    Given that, what you want is part of static analysis, and there’s a large list of available static analysis tools on wikipedia. You should also search stack overflow for “dead code” and your language (C++, Java, etc.) This question has been asked a lot of different ways in the past. Generally you run a tool, see what it says isn’t used, delete that, then run the tool again to find the things that only dead code was using. Repeat.

    From a manager’s point of view, you’re absolutely right here. The fact that you have a lot of unit tests means two things: you’re probably maintaining unit tests for things you don’t use (and that costs money), and the tests you have will let you make these kinds of mechanical changes with confidence. The best bet is to find someone on your team who likes to automate things; they often have the right mindset to do this kind of work. If you have multiple people working on it, I’d have one person learn the static analyzer and work out a pattern to follow. Then split up the team into different parts of the code so they don’t collide.

    This kind of work can go very fast, and typically has a very good payback. Just make sure that people remove one piece at a time, compile, do some simple testing, and then commit that before moving on. Regularly (generally after a large change, or at least daily) do a complete clean rebuild and “big” test to make sure you really haven’t broken anything. The worst thing you can do is try to find every piece of dead code in the system and remove it all at once and then commit. I promise that removing one of those pieces will break the system, and you’ll never be able to figure out which one it was. But if you work methodically, this can be a very low risk endeavor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project which it's domain contain following classes: Courier Customer Food Order
In the past I had quite some reusable code in my project which I
I work in a project which uses the session a lot. We have a
I have been working on rails project, which had been made using noSql(Mongoid). Every
I have been given a project which was released 2+ years ago, and had
So I have this Bitnami EC2 instance which had project 'Project' in it by
I have a project in which I had to allow a user to enter
I have been working on a project which had been split over several servers
I have an open source project which I had been actively developing JStock -
I have a project which is a Web Site, not Web Application and have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.