From 2f7474481f2d63ee141559199e1174522c8af755 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Fri, 4 Feb 2011 18:20:00 -0500 Subject: [PATCH] Remove unnecessary copy constructor and operator= --- terminalframebuffer.cpp | 17 ----------------- terminalframebuffer.hpp | 3 --- 2 files changed, 20 deletions(-) diff --git a/terminalframebuffer.cpp b/terminalframebuffer.cpp index dd0d414..b8fde46 100644 --- a/terminalframebuffer.cpp +++ b/terminalframebuffer.cpp @@ -11,23 +11,6 @@ Cell::Cell() renditions() {} -Cell::Cell( const Cell &x ) - : contents( x.contents ), - fallback( x.fallback ), - width( x.width ), - renditions( x.renditions ) -{} - -Cell & Cell::operator=( const Cell &x ) -{ - contents = x.contents; - fallback = x.fallback; - width = x.width; - renditions = x.renditions; - - return *this; -} - Row::Row( size_t s_width ) : cells( s_width ) {} diff --git a/terminalframebuffer.hpp b/terminalframebuffer.hpp index f21a92e..827b791 100644 --- a/terminalframebuffer.hpp +++ b/terminalframebuffer.hpp @@ -17,9 +17,6 @@ namespace Terminal { Cell(); - Cell( const Cell & ); - Cell & operator=( const Cell & ); - void reset( void ); };