@@ -53,7 +53,6 @@ Generator::Generator(std::optional<SchemaOptions>&& customSchema, GeneratorOptio
53
53
, _headerDir(getHeaderDir())
54
54
, _sourceDir(getSourceDir())
55
55
, _headerPath(getHeaderPath())
56
- , _objectHeaderPath(getObjectHeaderPath())
57
56
, _sourcePath(getSourcePath())
58
57
{
59
58
}
@@ -90,19 +89,6 @@ std::string Generator::getHeaderPath() const noexcept
90
89
return fullPath.string ();
91
90
}
92
91
93
- std::string Generator::getObjectHeaderPath () const noexcept
94
- {
95
- if (!_options.mergeFiles )
96
- {
97
- fs::path fullPath { _headerDir };
98
-
99
- fullPath /= (std::string { _loader.getFilenamePrefix () } + " Objects.h" );
100
- return fullPath.string ();
101
- }
102
-
103
- return _headerPath;
104
- }
105
-
106
92
std::string Generator::getSourcePath () const noexcept
107
93
{
108
94
fs::path fullPath { _sourceDir };
@@ -1731,8 +1717,6 @@ Operations::Operations()cpp";
1731
1717
{
1732
1718
sourceFile << std::endl;
1733
1719
1734
- const std::vector<std::string_view> emptyInterfaces {};
1735
-
1736
1720
for (const auto & interfaceType : _loader.getInterfaceTypes ())
1737
1721
{
1738
1722
if (!_options.mergeFiles )
@@ -2745,47 +2729,6 @@ std::vector<std::string> Generator::outputSeparateFiles() const noexcept
2745
2729
}
2746
2730
}
2747
2731
2748
- // Output a convenience header
2749
- std::ofstream objectHeaderFile (_objectHeaderPath, std::ios_base::trunc);
2750
- IncludeGuardScope includeGuard { objectHeaderFile,
2751
- fs::path (_objectHeaderPath).filename ().string () };
2752
-
2753
- objectHeaderFile << R"cpp( #include ")cpp" << fs::path (_headerPath).filename ().string ()
2754
- << R"cpp( "
2755
-
2756
- )cpp" ;
2757
-
2758
- for (const auto & interfaceType : _loader.getInterfaceTypes ())
2759
- {
2760
- const auto headerFilename = std::string (interfaceType.cppType ) + " Object.h" ;
2761
-
2762
- objectHeaderFile << R"cpp( #include ")cpp" << headerFilename << R"cpp( "
2763
- )cpp" ;
2764
- }
2765
-
2766
- for (const auto & unionType : _loader.getUnionTypes ())
2767
- {
2768
- const auto headerFilename = std::string (unionType.cppType ) + " Object.h" ;
2769
-
2770
- objectHeaderFile << R"cpp( #include ")cpp" << headerFilename << R"cpp( "
2771
- )cpp" ;
2772
- }
2773
-
2774
- for (const auto & objectType : _loader.getObjectTypes ())
2775
- {
2776
- const auto headerFilename = std::string (objectType.cppType ) + " Object.h" ;
2777
-
2778
- objectHeaderFile << R"cpp( #include ")cpp" << headerFilename << R"cpp( "
2779
- )cpp" ;
2780
- }
2781
-
2782
- if (_options.verbose )
2783
- {
2784
- files.push_back ({ _objectHeaderPath });
2785
- }
2786
-
2787
- const std::vector<std::string_view> emptyInterfacesAndUnions {};
2788
-
2789
2732
for (const auto & interfaceType : _loader.getInterfaceTypes ())
2790
2733
{
2791
2734
const auto headerFilename = std::string (interfaceType.cppType ) + " Object.h" ;
0 commit comments