From 45bdcd9dccefee97b56e8792a180ac0000865ea7 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 30 Jan 2008 21:12:06 +0100 Subject: inline some dummy methods --- src/OutputImage.H | 10 +++++----- src/OutputImage.cxx | 25 ------------------------- 2 files changed, 5 insertions(+), 30 deletions(-) (limited to 'src') diff --git a/src/OutputImage.H b/src/OutputImage.H index 17955b9..edbb637 100644 --- a/src/OutputImage.H +++ b/src/OutputImage.H @@ -15,7 +15,7 @@ class OutputImage { public: OutputImage(); - virtual ~OutputImage(); + virtual ~OutputImage() {}; virtual int init(int w1, int h1); @@ -28,13 +28,13 @@ class OutputImage { protected: int W, H, line; - virtual int init_internal(int w1, int h1); + virtual int init_internal(int w1, int h1) {return 0;}; - virtual int set_pixel_internal(int x, int r, int g, int b); + virtual int set_pixel_internal(int x, int r, int g, int b) {return 0;}; - virtual int next_line_internal(); + virtual int next_line_internal() {return 0;}; - virtual int done_internal(); + virtual int done_internal() {return 0;}; }; #endif diff --git a/src/OutputImage.cxx b/src/OutputImage.cxx index f981f18..d1c2f43 100644 --- a/src/OutputImage.cxx +++ b/src/OutputImage.cxx @@ -15,9 +15,6 @@ OutputImage::OutputImage() { initialized = 0; } -OutputImage::~OutputImage() { -} - int OutputImage::init(int w1, int h1) { W = w1; @@ -28,12 +25,6 @@ OutputImage::init(int w1, int h1) { return init_internal(w1, h1); } - -int -OutputImage::init_internal(int w1, int h1) { - return 0; -} - int OutputImage::set_pixel(int x, int r, int g, int b) { if (!initialized || x < 0 || x >= W) { @@ -43,11 +34,6 @@ OutputImage::set_pixel(int x, int r, int g, int b) { } } -int -OutputImage::set_pixel_internal(int x, int r, int g, int b) { - return 0; -} - int OutputImage::next_line() { if (!initialized || line++ >= H) { @@ -57,11 +43,6 @@ OutputImage::next_line() { } } -int -OutputImage::next_line_internal() { - return 0; -} - int OutputImage::done() { if (!initialized) { @@ -71,9 +52,3 @@ OutputImage::done() { return done_internal(); } } - -int -OutputImage::done_internal() { - return 0; -} - -- cgit v1.2.3