diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2015-02-25 00:22:08 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2015-02-25 00:22:08 +0000 |
| commit | df7828a7a8ba0b7e6c2dd892ca5f0a62ef718bf0 (patch) | |
| tree | 8e03cc5b9c89749e73a1281ee997da90b40694fc /src/sp-ellipse.cpp | |
| parent | Translations. Hungarian translation update. (diff) | |
| download | inkscape-df7828a7a8ba0b7e6c2dd892ca5f0a62ef718bf0.tar.gz inkscape-df7828a7a8ba0b7e6c2dd892ca5f0a62ef718bf0.zip | |
create SPObject factory
(bzr r13939.1.1)
Diffstat (limited to 'src/sp-ellipse.cpp')
| -rw-r--r-- | src/sp-ellipse.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/sp-ellipse.cpp b/src/sp-ellipse.cpp index a74d4687d..885fedafa 100644 --- a/src/sp-ellipse.cpp +++ b/src/sp-ellipse.cpp @@ -34,35 +34,6 @@ #include "svg/path-string.h" #include "xml/repr.h" -#include "sp-factory.h" - -namespace { -SPObject *create_ellipse() -{ - SPGenericEllipse *ellipse = new SPGenericEllipse(); - ellipse->type = SP_GENERIC_ELLIPSE_ELLIPSE; - return ellipse; -} - -SPObject *create_circle() -{ - SPGenericEllipse *circle = new SPGenericEllipse(); - circle->type = SP_GENERIC_ELLIPSE_CIRCLE; - return circle; -} - -SPObject *create_arc() -{ - SPGenericEllipse *arc = new SPGenericEllipse(); - arc->type = SP_GENERIC_ELLIPSE_ARC; - return arc; -} - -bool ellipse_registered = SPFactory::instance().registerObject("svg:ellipse", create_ellipse); -bool circle_registered = SPFactory::instance().registerObject("svg:circle", create_circle); -bool arc_registered = SPFactory::instance().registerObject("arc", create_arc); -} - #ifndef M_PI #define M_PI 3.14159265358979323846 |
