Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused and unfinished SharedPointers support
Extracted from #276 In SharedPointers mode, the compiler never generates correct code and in many cases throws a `scala.MatchError` due to missing arms in switches. It was not possible to run the compiler with this setting anyway, so it is better to remove it for now until it is fully implemented. Fixes the following warnings (13): ``` [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:511:26: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] config.cppConfig.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:511:26: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] config.cppConfig.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:727:22: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] config.cppConfig.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:870:24: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] config.cppConfig.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:980:22: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] config.cppConfig.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:727:22: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] config.cppConfig.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:1103:48: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] case ArrayTypeInStream(inType) => config.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:1108:44: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] case OwnedKaitaiStreamType => config.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:870:24: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] config.cppConfig.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:980:22: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] config.cppConfig.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:1103:48: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] case ArrayTypeInStream(inType) => config.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/languages/CppCompiler.scala:1108:44: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] case OwnedKaitaiStreamType => config.pointers match { [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/translators/CppTranslator.scala:106:24: match may not be exhaustive. [warn] It would fail on the following input: SharedPointers [warn] config.cppConfig.pointers match { [warn] ^ ```
- Loading branch information