Commit c6bf04ab authored by Monty's avatar Monty Committed by Sergei Golubchik

Removed not used object Geometry::bad_geometry_data()

parent 61822a9b
...@@ -144,8 +144,6 @@ int MBR::within(const MBR *mbr) ...@@ -144,8 +144,6 @@ int MBR::within(const MBR *mbr)
/***************************** Gis_class_info *******************************/ /***************************** Gis_class_info *******************************/
String Geometry::bad_geometry_data("Bad object", &my_charset_bin);
Geometry::Class_info *Geometry::ci_collection[Geometry::wkb_last+1]= Geometry::Class_info *Geometry::ci_collection[Geometry::wkb_last+1]=
{ {
NULL, NULL, NULL, NULL, NULL, NULL, NULL NULL, NULL, NULL, NULL, NULL, NULL, NULL
......
...@@ -227,8 +227,6 @@ class Geometry ...@@ -227,8 +227,6 @@ class Geometry
static void operator delete(void *buffer) static void operator delete(void *buffer)
{} {}
static String bad_geometry_data;
enum wkbType enum wkbType
{ {
wkb_point= 1, wkb_point= 1,
......
...@@ -841,8 +841,6 @@ int Field_geom::store(const char *from, size_t length, CHARSET_INFO *cs) ...@@ -841,8 +841,6 @@ int Field_geom::store(const char *from, size_t length, CHARSET_INFO *cs)
bzero(ptr, Field_blob::pack_length()); bzero(ptr, Field_blob::pack_length());
else else
{ {
if (from == Geometry::bad_geometry_data.ptr())
goto err;
// Check given WKB // Check given WKB
uint32 wkb_type; uint32 wkb_type;
if (length < SRID_SIZE + WKB_HEADER_SIZE + 4) if (length < SRID_SIZE + WKB_HEADER_SIZE + 4)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment