Safe Delete Clarification
I have a C++ class:
class Train : public Transport
{
public:
Train();
Train(const Mill&);
Train(int what, int howMuch, ...);
virtual ~ Train();
Money& TicketPrice(Location* start,Location* end);
};
This class once was useful, but nowadays we always use an Airplane instead. Now, Train is never used. Safe Delete, however, won’t delete the class because it’s referenced by its own constructors. Find Usages confirms that all the usages are internal to the class, so even if the constructors have side effects they can’t ever be called
Is this within the purview of Safe Delete?
请先登录再写评论。
Mark, could you please file a bug report in our tracker?