summaryrefslogtreecommitdiff
path: root/otk/size.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-21 18:42:39 +0000
committerDana Jansens <danakj@orodu.net>2003-03-21 18:42:39 +0000
commita52a6d96d701c993896f276e4198003317632aaf (patch)
treebe2f51e6a433d1fdf9a7c8248b343cb3f6297212 /otk/size.hh
parenta36c7543d4eedaa9e10bfd9f4d9b81279b1bb7e6 (diff)
rm the old code including the .pys and the c++ shit
Diffstat (limited to 'otk/size.hh')
-rw-r--r--otk/size.hh25
1 files changed, 0 insertions, 25 deletions
diff --git a/otk/size.hh b/otk/size.hh
deleted file mode 100644
index 57447d5d..00000000
--- a/otk/size.hh
+++ /dev/null
@@ -1,25 +0,0 @@
-// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef __size_hh
-#define __size_hh
-
-#include <cassert>
-
-namespace otk {
-
-class Size {
- int _w, _h;
-public:
- Size() : _w(1), _h(1) {}
- Size(int w, int h) : _w(w), _h(h) { assert(_w >= 0 && _h >= 0); }
- Size(const Size &s) : _w(s._w), _h(s._h) { assert(_w >= 0 && _h >= 0); }
-
- inline int width() const { return _w; }
- inline int height() const { return _h; }
-
- bool operator==(const Size &o) const { return _w == o._w && _h == o._h; }
- bool operator!=(const Size &o) const { return _w != o._w || _h != o._h; }
-};
-
-}
-
-#endif // __size_hh