Removes Dead code & regenerate code (#7744)

Formats the swift project

Update Sample files

Update docc documentation

Updates swift docs in the website

Updates code for Wasm
This commit is contained in:
mustiikhalil
2023-01-07 01:40:40 +01:00
committed by GitHub
parent e61b00359b
commit 4d6a7aa8b7
61 changed files with 277 additions and 243 deletions

View File

@@ -483,12 +483,6 @@ class SwiftGenerator : public BaseGenerator {
"fileId: "
"{{STRUCTNAME}}.id, addPrefix: prefix) }";
}
code_ +=
"{{ACCESS_TYPE}} static func getRootAs{{SHORT_STRUCTNAME}}(bb: "
"ByteBuffer) -> "
"{{STRUCTNAME}} { return {{STRUCTNAME}}(Table(bb: bb, position: "
"Int32(bb.read(def: UOffset.self, position: bb.reader)) + "
"Int32(bb.reader))) }\n";
code_ += "private init(_ t: Table) { {{ACCESS}} = t }";
}
code_ +=