eolian-cxx: Removed unused code.
authorSavio Sena <savio@expertisesolutions.com.br>
Thu, 24 Jul 2014 18:45:53 +0000 (15:45 -0300)
committerSavio Sena <savio@expertisesolutions.com.br>
Thu, 24 Jul 2014 22:52:23 +0000 (19:52 -0300)
Sanitized grammar removing old code which is not unecessary for good.

src/lib/eolian_cxx/grammar/inheritance_base_generator.hh
src/lib/eolian_cxx/grammar/parameters_generator.hh

index 54617f1..5c32498 100644 (file)
@@ -83,37 +83,6 @@ operator<<(std::ostream& out, inheritance_operations_description const& x)
    return out;
 }
 
-struct inheritance_wrapper
-{
-   eo_class const& _cls;
-   eo_function const& _func;
-   inheritance_wrapper(eo_class const& cls, eo_function const& func)
-     : _cls(cls), _func(func)
-   {}
-};
-
-inline std::ostream&
-operator<<(std::ostream& out, inheritance_wrapper const& x)
-{
-   out << "template <typename T>" << endl
-       << reinterpret_type(x._func.ret) << " "
-       << _ns_as_prefix(x._cls) << "_"
-       << x._cls.name << "_" << x._func.name
-       << "_wrapper(Eo* objid EINA_UNUSED, "
-       << "efl::eo::detail::Inherit_Private_Data* self"
-       << (x._func.params.size() ? ", " : "")
-       << parameters_c_declaration(x._func.params)
-       << ")" << endl
-       << "{" << endl
-       << tab(1)
-       << (!function_is_void(x._func) ? "return ": "")
-       << "static_cast<T*>(self->this_)->"
-       << x._func.name << "(" << parameters_c_list(x._func.params) << ");" << endl
-       << "}" << endl << endl;
-
-   return out;
-}
-
 struct inheritance_wrappers
 {
    eo_class const& _cls;
index 053cef6..83de297 100644 (file)
@@ -86,21 +86,6 @@ operator<<(std::ostream& out, parameters_types const& x)
    return out;
 }
 
-inline
-std::ostream& parameter_names_enumerate(std::ostream& out
-                                        , parameters_container_type const& params)
-{
-   for (auto first = params.begin()
-          , iterator = first
-          , last = params.end()
-          ; iterator != last; ++iterator)
-     {
-        if(iterator != first) out << ", ";
-        out << iterator->name;
-     }
-   return out;
-}
-
 struct
 parameters_list
 {