diff --git a/src/apps/icon-o-matic/import_export/svg/SVGImporter.cpp b/src/apps/icon-o-matic/import_export/svg/SVGImporter.cpp index 534b36c4b3..8b3f176d39 100644 --- a/src/apps/icon-o-matic/import_export/svg/SVGImporter.cpp +++ b/src/apps/icon-o-matic/import_export/svg/SVGImporter.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include "DocumentBuilder.h" @@ -51,21 +52,11 @@ SVGImporter::Import(Icon* icon, const entry_ref* ref) if (ret < B_OK) return ret; - // peek into file to see if this could be an SVG file at all - BFile file(path.Path(), B_READ_ONLY); - ret = file.InitCheck(); - if (ret < B_OK) - return ret; - - ssize_t size = 5; - char buffer[size + 1]; - if (file.Read(buffer, size) != size) - return B_ERROR; - - // 0 terminate - buffer[size] = 0; - if (strcasecmp(buffer, "