473,480 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to delete all function calls

Hi All,

I want to remove a function from my solution.

But there are more than 100 calls made to that function.

I just want to remove (delete) all such calling statements from my code.

Is there a easy to do this is visual studio IDE?

Thanks for your help.

Regards
Anand Ganesh
Jan 31 '07 #1
3 1279
If it doesn't take any parameters, you could replace the function call with
empty string. If it takes parameters, I think you may have to go and delete
it all manually. I don't think this should take more then a few minutes
though.

"Anand Ganesh" <ag*****@nobel-systems.comwrote in message
news:e%****************@TK2MSFTNGP03.phx.gbl...
Hi All,

I want to remove a function from my solution.

But there are more than 100 calls made to that function.

I just want to remove (delete) all such calling statements from my code.

Is there a easy to do this is visual studio IDE?

Thanks for your help.

Regards
Anand Ganesh

Jan 31 '07 #2
Thanks Marina. I will try the second option as this takes parameter which
will be different everywhere.

Regards
Anand Ganesh

"Marina Levit [MVP]" <ma*****@comcast.netwrote in message
news:5I******************************@comcast.com. ..
If it doesn't take any parameters, you could replace the function call
with empty string. If it takes parameters, I think you may have to go and
delete it all manually. I don't think this should take more then a few
minutes though.

"Anand Ganesh" <ag*****@nobel-systems.comwrote in message
news:e%****************@TK2MSFTNGP03.phx.gbl...
>Hi All,

I want to remove a function from my solution.

But there are more than 100 calls made to that function.

I just want to remove (delete) all such calling statements from my code.

Is there a easy to do this is visual studio IDE?

Thanks for your help.

Regards
Anand Ganesh


Jan 31 '07 #3
Why not have the method throw a "not implemented" exception?
callers will get the message very quickly.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Anand Ganesh" wrote:
Hi All,

I want to remove a function from my solution.

But there are more than 100 calls made to that function.

I just want to remove (delete) all such calling statements from my code.

Is there a easy to do this is visual studio IDE?

Thanks for your help.

Regards
Anand Ganesh
Feb 1 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

52
26941
by: Newsnet Customer | last post by:
Hi, Statement 1: "A dynamically created local object will call it's destructor method when it goes out of scope when a procedure returms" Agree. Statement 2: "A dynamically created object...
11
912
by: Jonan | last post by:
Hello, For several reasons I want to replace the built-in memory management with some custom built. The mem management itlsef is not subject to my question - it's ok to the point that I have...
6
1848
by: Jay Nabonne | last post by:
Hi, This might sound odd, but we want to replace the allocation scheme used by new and delete without changing operator new and operator delete. (The global operators are shared and we can't...
22
4145
by: Cylix | last post by:
I have a 4row x 1col table, I would like to drop all the content of row three. Since Mac IE5.2 does not suppport deleteRow method, I have also try to set the innerHTML=''; but it does not work. ...
10
2932
by: =?iso-8859-1?q?Ernesto_Basc=F3n?= | last post by:
I am implementing my custom smart pointer: template <typename T> class MySmartPtr { public: MySmartPtr(T* aPointer) { mPointer = aPointer; }
9
8143
by: rohits123 | last post by:
I have an overload delete operator as below ////////////////////////////////// void operator delete(void* mem,int head_type) { mmHead local_Head = CPRMemory::GetMemoryHead(head_type);...
6
1869
by: mdinino | last post by:
Hi, I am new to C++, and I have a simple question but I can't seem to find a direct answer. If I use new to create something in the scope of a function and then I return the pointer that I...
12
3344
by: yufufi | last post by:
Hello, How does delete know how much memory to deallocate from the given pointer? AFAIK this informations is put there by new. new puts the size of the allocated memory before the just before...
10
2068
by: jeffjohnson_alpha | last post by:
We all know that a new-expression, foo* a = new foo() ; allocates memory for a single foo then calls foo::foo(). And we know that void* p = ::operator new(sizeof(foo)) ; allocates a...
4
1823
by: mail.dsp | last post by:
Suppose in a class we overload four operators: operator new operator delete operator new operator delete class Test{ public: void * operator new (size_t t){ cout<<"\nCalling... new";
0
7046
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7048
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7088
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6956
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4783
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2997
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.