| 2657 | } |
| 2658 | |
| 2659 | int |
| 2660 | Domain::removeRecorder(int tag) |
| 2661 | { |
| 2662 | for (int i=0; i<numRecorders; i++) { |
| 2663 | if (theRecorders[i] != 0) { |
| 2664 | if (theRecorders[i]->getTag() == tag) { |
| 2665 | delete theRecorders[i]; |
| 2666 | theRecorders[i] = 0; |
| 2667 | return 0; |
| 2668 | } |
| 2669 | } |
| 2670 | } |
| 2671 | |
| 2672 | return -1; |
| 2673 | } |
| 2674 | |
| 2675 | |
| 2676 |
no test coverage detected