unused

Finding unused jars used in an eclipse project

Are there any plugins/tools available to go through the classpath of an eclipse project (or workspace) and highlight any unused jars? ...

How to find and remove unused Delphi packages from a project

How to find and remove unused Delphi runtime packages from a project that uses packages? I have a Delphi project that is made up of several packages, in the requires part of the packages there are several Borland/3rd party packages listed (rtl.dcp, vcl.dcp ect) I know I need most of them, but there are ones I know I don't need that have...

How to find functions which are not executed?

Hi, I have a MS Visual Studio 2005 workspace, all C code. I want to find all the functions in that code, which are not called/executed when a certain test case is executed. What is the way to get that using 1.) MS VS 2005 itself or MSVC6.0 ? 2.) Using some other tool? -AD ...

Why gcc gives error of unused variable for local variables but not for global variables?

Hello, I have a question regarding gcc. Why I get an error of unused variable when I define the variable locally in a function but not when the variable is global in a unique file?. I can understand that it can be use for someone else, but to do that then I need to put the external word right? Thanks in advance. ...

How to avoid the "unused param" warning when overriding a method in java 1.4 ?

In this code : public class MyClass { private Object innerValue; public Object getInnerValue() { return this.innerValue; } public void setInnerValue(Object innerValue) { this.innerValue = innerValue; } } public class MyClassReadOnly extends MyClass { MyClassReadOnly(MyClass cls) { // Mak...

How to detect unused methods and #import in Objective-C

After working a long time on an iPhone app, I realized that my code it's quite dirty, containing several #import and methods that are not called or useful at all. I would like to know if there's any compiler directive or way to detect those useless lines of code. Does Xcode have any tool to detect this? ...

Supress unused variable warning in C++ => Compiler bug or code bug?

Presently, I am using the following function template to suppress unused variable warnings: template<typename T> void unused(T const &) { /* Do nothing. */ } However, when porting to cygwin from Linux, I am now getting compiler errors on g++ 3.4.4 (On linux I am 3.4.6, so maybe this is a bug fix?): Write.cpp: In member function `vo...

DatagridView: Remove unused space ?

I was wondering whether it is possible to remove the unused space ( the gray space ) of the DataGridView control in C#. I have to make the DataGridView display the white table only. Any suggestions ? ...

find unused images, css rules, js script blocks

We have a fairly large asp.net website. The images, css and javascripts are property organized in the website project but as we are changing the look and feel of the website, I would like to know if there is a tool/add-in that will help me identify which images are not being used in the website. I would like to find the same thing with ...

Find unused code in a Maven modularised project

Hi, I have to clean up an old project and general knowledge here is that the project contains lots of unused code that we could remove. That would save some headaches and make maintenance easier. I found the Eclipse Core Tools plugin which looks like a great tool, but in our case we have a Maven2 project that is split in 3 modules. I...

Remove unused CSS on the Fly?

Hi GUys, Having a problem at the moment that many of my pages load [using GooglePageSpeed] and seem to load a lot of unused CSS. If I try and split the CSS - then I get the error that "too many CSS files". I am wondering whether there are any jquery plugins [or other] that are able to RENDER only the CSS for the page that is being load...

How do I find out which JAR application is not using?

In our application through the process of developing a lot of JAR files has been collected. How can I filter out those, which are not used by application anymore? On some easy way? ...

Getting rid of unused php files

I'm looking into removing php files that are no longer used on my site. I can use something like get_included_files to show the included files, but that would mean I would have to put it on every child page. If I put it on a parent page, it won't show me the child page that called it. Has anybody else run into a similar situation? If so...

Eclipse - How to show warning for unused method parameter ?

I am using Eclipse v3.5. In previous Eclipse versions i remember if i have defined a method with a parameter and didn't use it internally a warning appears, like this : public void myMethod( int x ) { // Didn't use x here so a warning appears at the x parameter. } But in v3.5 i do not see this warning. How can i enable it in Eclips...

How can you tell which columns are unused in ALL_TAB_COLS?

When you query the ALL_TAB_COLS view on Oracle 9i, it lists columns marked as UNUSED as well as the 'active' table columns. There doesn't seem to be a field that explicitly says whether a column is UNUSED, or any view I can join to that lists the unused columns in a table. How can I easily find out which are the unused columns, so I can ...

Force C# Compiler to Create an Unused Object Instance

Yes exactly what I want to do :) At least for a particular class. The problem is, I create a static instance of an object but I don not use it directly. Since I do some operations in the constructor ,like adding the object to a list, the constructor must be invoked at least once before I get the list. I guess that the compiler just opti...

identifying php unused variables

Hello, I have seen the bellow question and was wondering if there is something like it for eclipse. Also how can I make sure that this kind of errors get's thrown into my trigger error function so that I can write it to a log. Thank you for any help. http://stackoverflow.com/questions/2534176/identifying-php-unused-variables-in-emac...

What do you call a method or library which is old and shouldn't be used anymore?

There has to be a name for this. I'm thinking degraded or unused (old isn't descriptive enough). Has anyone come up with something descriptive to call this? ...

Suppressing Erlang "unused function" warnings

I wrote an Erlang module where not all the internal functions are directly called. Instead, there's a couple functions that look something like this: weird_func(Cmd, Args) -> ?MODULE:Cmd(Args). It's a simplified example, but you get the idea. The Erlang compiler spits out warnings about unused functions, when in fact they are actu...

Unnamed parameters in C

In C, unlike C++, all parameters to a function definition must be named. Instead of quashing "unused parameter" errors with (void)a, or openly using __attribute__((unused)), I've created the following macro: #define UNUSED2(var, uniq) UNUSED_ ## line ## var __attribute((unused)) // squash unused variable warnings, can it be done withou...