remove Clone() and EmptyClone() methods from NCurses::Window and derives

these functions served no purpose.
This commit is contained in:
Andrzej Rybczak
2009-09-16 03:10:53 +00:00
parent 21468d9537
commit fc6d367f75
5 changed files with 0 additions and 24 deletions

View File

@@ -180,9 +180,6 @@ namespace NCurses
const T &operator[](size_t i) const;
T &operator[](size_t i);
virtual Menu<T> *Clone() const { return new Menu<T>(*this); }
virtual Menu<T> *EmptyClone() const;
protected:
void ClearFiltered();
@@ -797,10 +794,5 @@ template <typename T> T &NCurses::Menu<T>::operator[](size_t i)
return (*itsOptionsPtr)[i]->Item;
}
template <typename T> NCurses::Menu<T> *NCurses::Menu<T>::EmptyClone() const
{
return new NCurses::Menu<T>(GetStartX(), GetStartY(), GetWidth(), GetHeight(), itsTitle, itsBaseColor, itsBorder);
}
#endif

View File

@@ -215,8 +215,3 @@ Scrollpad &Scrollpad::operator<<(const std::string &s)
}
#endif // _UTF8
Scrollpad *Scrollpad::EmptyClone() const
{
return new Scrollpad(GetStartX(), GetStartY(), GetWidth(), GetHeight(), itsTitle, itsBaseColor, itsBorder);
}

View File

@@ -58,9 +58,6 @@ namespace NCurses
Scrollpad &operator<<(const std::string &s);
# endif // _UTF8
virtual Scrollpad *Clone() const { return new Scrollpad(*this); }
virtual Scrollpad *EmptyClone() const;
protected:
virtual void Recreate();

View File

@@ -827,11 +827,6 @@ Window &Window::operator<<(size_t s)
return *this;
}
Window * Window::EmptyClone() const
{
return new Window(GetStartX(), GetStartY(), GetWidth(), GetHeight(), itsTitle, itsBaseColor, itsBorder);
}
std::string ToString(const std::wstring &ws)
{
std::string result;

View File

@@ -434,9 +434,6 @@ namespace NCurses
///
Window &operator<<(const std::wstring &ws);
virtual Window *Clone() const { return new Window(*this); }
virtual Window *EmptyClone() const;
/// Fallback for Length() for wide strings used if unicode support is disabled
/// @param s string that real length has to be measured
/// @return standard std::string::length() result since it's only fallback