mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-18 11:44:26 +00:00
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:
@@ -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_ +=
|
||||
|
||||
Reference in New Issue
Block a user