From 613766b104cee10f1d399620c248107bafbbec80 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 12 May 2015 10:19:37 -0700 Subject: [PATCH] drop obsolete and unsupported big endian support - refs #2806 --- include/mapnik/color.hpp | 4 ---- plugins/input/shape/shapefile.hpp | 17 ----------------- 2 files changed, 21 deletions(-) diff --git a/include/mapnik/color.hpp b/include/mapnik/color.hpp index e7e9ab92d..84f03d539 100644 --- a/include/mapnik/color.hpp +++ b/include/mapnik/color.hpp @@ -157,11 +157,7 @@ public: inline unsigned rgba() const { -#ifdef MAPNIK_BIG_ENDIAN - return static_cast((alpha_) | (blue_ << 8) | (green_ << 16) | (red_ << 24)) ; -#else return static_cast((alpha_ << 24) | (blue_ << 16) | (green_ << 8) | (red_)) ; -#endif } private: void swap(color & rhs) diff --git a/plugins/input/shape/shapefile.hpp b/plugins/input/shape/shapefile.hpp index c53d467b7..3e35544d3 100644 --- a/plugins/input/shape/shapefile.hpp +++ b/plugins/input/shape/shapefile.hpp @@ -220,30 +220,13 @@ public: inline double read_double() { double val; -#ifndef MAPNIK_BIG_ENDIAN file_.read(reinterpret_cast(&val), 8); -#else - char b[8]; - file_.read(b, 8); - read_double_ndr(b, val); -#endif return val; } inline void read_envelope(box2d& envelope) { -#ifndef MAPNIK_BIG_ENDIAN file_.read(reinterpret_cast(&envelope), sizeof(envelope)); -#else - char data[4 * 8]; - file_.read(data,4 * 8); - double minx, miny, maxx, maxy; - read_double_ndr(data + 0 * 8, minx); - read_double_ndr(data + 1 * 8, miny); - read_double_ndr(data + 2 * 8, maxx); - read_double_ndr(data + 3 * 8, maxy); - envelope.init(minx, miny, maxx, maxy); -#endif } inline void skip(std::streampos bytes)